dapla-jupyterlab-widgets
v0.1.0
Published
A collection of custom Jupyterlab widgets for the Dapla platform
Downloads
1
Maintainers
Readme
dapla-jupyterlab-widgets
A collection of custom Jupyterlab widgets for the Dapla platform. These are extensions with backend (i.e. server) and frontend parts.
Installation
Install Jupyterlab using pip
:
pip install jupyterlab
Then you can install the extensions:
pip install dapla_jupyterlab_widgets
jupyter labextension install @jupyter-widgets/jupyterlab-manager
Development Installation
# First install the python package. This will also build the JS packages.
pip install -e ".[test, examples]"
When developing your extensions, you need to manually enable your extensions with the notebook / lab frontend. For lab, this is done by the command:
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
jupyter labextension install .
How to see your changes
Typescript:
To continuously monitor the project for changes and automatically trigger a rebuild, start Jupyter in watch mode:
jupyter lab --watch
And in a separate session, begin watching the source directory for changes:
npm run watch
After a change wait for the build to finish and then refresh your browser and the changes should take effect.
Python:
If you make a change to the python code then you will need to restart the notebook kernel to have it take effect.