VK / dash-lumino-components

This package integrates Lumino Widgets, the basis of JupyterLab, into Plotly's Dash.
MIT License
27 stars 1 forks source link

Dash Lumino Components

Publish release PyPI npm Documentation

This package integrates Lumino Widgets, the basis of JupyterLab, into Plotly's Dash.

Create a multi-window dash app with just a few lines of code. Check out the examples:
multiplots example

dlc.MenuBar(menus, id="main-menu"),
dlc.BoxPanel([
    dlc.SplitPanel([
        dlc.TabPanel([
            gapminderPlotsPanel,
            irisPlotsPanel,
            tipsPlotsPanel
        ], id='tab-panel-left'),
        dlc.DockPanel([], id="dock-panel")
    ], id="split-panel")
], id="box-panel", addToDom=True)

Local Developement

  1. Install npm packages

    $ npm install
  2. Create a virtual env and activate.

    $ virtualenv venv
    $ . venv/bin/activate

    Note: venv\Scripts\activate for windows

  3. Install python packages required to build components.

    $ pip install -r requirements.txt
    $ pip install -r tests/requirements.txt
  4. Build your code

    $ npm run build