Jupyterlab WIPP extension
WIPP integration with JupyterLab
Requirements
- JupyterLab >= 3.0.0
(Old version is compatible with JupyterLab 2.x)
Install
pip install jupyterlab-wipp
jupyter serverextension enable --py jupyterlab_wipp
jupyter labextension install jupyterlab_wipp
export WIPP_UI_URL=""
export WIPP_API_INTERNAL_URL=""
export WIPP_NOTEBOOKS_PATH=""
The last three steps are required environment variables.
WIPP_UI_URL
is the WIPP frontend base URL which will be used to open collection pages.WIPP_API_INTERNAL_URL
is the internal URL of WIPP API (usually internal URL on Kubernetes cluster)WIPP_NOTEBOOKS_PATH
is the local path to WIPP's temp/notebooks
folder
Contributing
Install
The jlpm
command is JupyterLab's pinned version of
yarn that is installed with JupyterLab. You may use
yarn
or npm
in lieu of jlpm
below.
pip install .
jupyter serverextension enable --py jupyterlab_wipp
jlpm
jlpm build
jupyter labextension link .
jlpm build
jupyter lab build
You can watch the source directory and run JupyterLab in watch mode to watch for changes in the extension's source and automatically rebuild the extension and application.
jlpm watch
jupyter lab --watch
Before starting the JupyterLab, the environment variable WIPP_UI_URL
must be set to point to WIPP.
Uninstall
jupyter labextension uninstall jupyterlab_wipp