equinor / webviz-core-components

Discipline agnostic Webviz and Dash components.
https://github.com/orgs/equinor/projects/24
MIT License
15 stars 16 forks source link
dash javascript python react webviz

PyPI version npm version Build Status Total alerts Language grade: JavaScript Language grade: Python Python 3.8 | 3.9 | 3.10 | 3.11 | 3.12 Code style: black code style: prettier

Webviz core components

webviz_core_components is a Dash component library for use in webviz. A storybook showing all available components is available at https://equinor.github.io/webviz-core-components/storybook-static.

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 --prefix ./react
  2. Install python packages required to build components.
    pip install .[dependencies]
    pip install dash[dev]
  3. Install the python packages for testing.
    pip install .[tests]

Write component code in react/src/lib/components/<ComponentName>/<ComponentName>.tsx