[![PyPI version](https://badge.fury.io/py/webviz-core-components.svg)](https://badge.fury.io/py/webviz-core-components)
[![Build Status](https://github.com/equinor/webviz-core-components/workflows/webviz-core-components/badge.svg)](https://github.com/equinor/webviz-core-components/actions?query=branch%3Amaster)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/equinor/webviz-core-components.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/equinor/webviz-core-components/alerts/)
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/equinor/webviz-core-components.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/equinor/webviz-core-components/context:javascript)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/equinor/webviz-core-components.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/equinor/webviz-core-components/context:python)
[![Python 3.6 | 3.7 | 3.8 | 3.9](https://img.shields.io/badge/python-3.6%20|%203.7%20|%203.8%20|%203.9-blue.svg)](https://www.python.org/)
[![Code style: black](https://img.shields.io/badge/code%20style-black%20%28Python%29-000000.svg)](https://github.com/psf/black)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier%20%28JavaScript%29-ff69b4.svg)](https://github.com/prettier/prettier)
# Webviz core components
`webviz_core_components` is a Dash component library for use in `webviz`.
You can quickly get started with:
1. Run `pip install webviz-core-components`
2. Run `python usage.py`
3. Visit http://localhost:8050 in your web browser
## How to contribute
### Install dependencies
If you want to build and develop yourself, you should fork + clone the repository, and
then:
1. Install npm packages
```
npm ci --ignore-scripts
```
2. Run the project's own `postinstall` script
```
npm run postinstall
```
3. Install python packages required to build components.
```
pip install .[dependencies]
pip install dash[dev]
```
4. Install the python packages for testing.
```
pip install .[tests]
pip install dash[testing]
```
The second of these commands appears to be necessary as long as
[this `pip` issue is open](https://github.com/pypa/pip/issues/4957).
### Write component code in `src/lib/components/<component_name>.react.js`
- The demo app is in `src/demo` and is where you will import an example of your
component. To start the existing demo app, run `npm start`.
- To test your code in a Python environment:
1. Build your code
```
npm run build
```
2. Install the Python pacakge in development mode (if not already done and
assuming you are using a virtual environment):
```
pip install -e .
```
3. Create a new example in `examples/` which uses your new component.
- Write tests for your component.
- Tests exist in `tests/`. Take a look at them to see how to write tests using
the Dash test framework.
- Run the tests with `pytest tests`.
- Add custom styles to your component by putting your custom CSS files into
your distribution folder (`webviz_core_components`).
- Make sure that they are referenced in `MANIFEST.in` so that they get
properly included when you're ready to publish your component.
- Make sure the stylesheets are added to the `_css_dist` dict in
`webviz_core_components/__init__.py` so dash will serve them
automatically when the component suite is requested.
没有合适的资源?快使用搜索试试~ 我知道了~
PyPI 官网下载 | webviz_core_components-0.3.0.tar.gz
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 98 浏览量
2022-01-17
10:34:38
上传
评论
收藏 2.02MB GZ 举报
温馨提示
共86个文件
py:14个
tsx:11个
ts:9个
资源来自pypi官网。 资源全名:webviz_core_components-0.3.0.tar.gz
资源推荐
资源详情
资源评论
收起资源包目录
webviz_core_components-0.3.0.tar.gz (86个子文件)
webviz_core_components-0.3.0
MANIFEST.in 380B
PKG-INFO 5KB
.eslintrc 919B
bandit.yml 48B
webpack.serve.config.js 356B
.babelrc 369B
usage.py 12KB
package.json 4KB
.pylintrc 16KB
pytest.ini 150B
.github
workflows
check-changelog.yml 589B
webviz-core-components.yml 3KB
.prettierrc 50B
jest.config.js 863B
tests
js
SmartNodeSelector.test.tsx 14KB
__snapshots__
SmartNodeSelector.test.tsx.snap 2KB
py
test_graph.py 1KB
test_color_scales.py 813B
test_plugin_placeholder.py 780B
index.html 422B
LICENSE 1KB
package-lock.json 1.43MB
src
lib
flexbox.css 452B
components
SmartNodeSelector
components
SmartNodeSelectorComponent.tsx 40KB
Suggestions.css 1KB
images
unknown.svg 366B
chevron-up.svg 262B
chevron-down.svg 263B
x.svg 293B
duplicate.svg 425B
invalid.svg 357B
Suggestions.tsx 14KB
SmartNodeSelector.css 6KB
Tag.tsx 17KB
utils
TreeNodeSelection.ts 11KB
TreeDataNodeTypes.ts 493B
TreeData.ts 8KB
index.ts 220B
SmartNodeSelector.jsx 4KB
ColorScales
ColorScales.tsx 3KB
index.ts 213B
Select
Select.css 288B
Select.tsx 5KB
index.ts 208B
WebvizPluginPlaceholder
WebvizPluginPlaceholder.tsx 9KB
webviz_plugin_component.css 2KB
utils
WebvizToolbarButton.tsx 1KB
WebvizContentOverlay.tsx 2KB
downloadFile.ts 778B
index.ts 225B
index.ts 507B
demo
index.tsx 320B
App.tsx 25KB
webviz_core_components
Select.py 4KB
webviz_core_components.dev.js 4.73MB
_argument_modifier.py 1KB
_imports_.py 276B
package-info.json 4KB
__init__.py 2KB
graph.py 896B
metadata.json 17KB
webviz_core_components.min.js 1.65MB
webviz_core_components.css 9KB
flexbox.py 685B
WebvizPluginPlaceholder.py 3KB
SmartNodeSelector.py 4KB
ColorScales.py 2KB
.npmignore 282B
tsconfig.json 853B
.Rbuildignore 511B
setup.cfg 38B
__mocks__
styleMock.js 21B
fileMock.js 35B
requirements.txt 56B
setup.py 2KB
.gitignore 5KB
webpack.config.js 3KB
CHANGELOG.md 1KB
webviz_core_components.egg-info
PKG-INFO 5KB
requires.txt 74B
SOURCES.txt 3KB
top_level.txt 23B
dependency_links.txt 1B
README.md 3KB
.eslintignore 30B
.vscode
launch.json 897B
共 86 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- da_1715269209522..apk
- tensorflow-gpu-2.2.0-cp38-cp38-win-amd64.whl
- tensorflow-gpu-2.2.3-cp38-cp38-win-amd64.whl
- tensorflow-gpu-2.2.3-cp36-cp36m-win-amd64.whl
- SSM 框架搭建部署流程
- Screenshot_2024-05-09-23-33-56-49.jpg
- Linux环境下安装和使用 Spark教程
- Linux环境下搭建Zookeeper的分布式环境教程
- Linux环境下搭建Zookeeper的分布式环境教程
- 大学生创新创业项目:中医药知识图谱构建,包含笔记和代码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功