A JupyterLab Extension for NBGallery integration
Project description
lab-extensions
Repo for JupyterLab/Retrolab/Notebookv7 NBGallery Extensions
Included extensions
Server extensions
jupyterlab-nbgallery
Lab Extensions
- autodownload
- environment-Life - Does not work in Retrolab/Notebookv7 at this time
- environment-registration
- gallery-menu
- inject-uuid - Add the NBGallery UUID and Commit ID to the environment of the kernel
- instrumentation - Track cell execution metrics and submit them to NBGallery
- userpreferences - Save JupyterLab prefernces to NBGallery and download them back to Jupyter
Installation
pip install juptyerlab_nbgallery
- Restart Jupyter Server if already running
Configuration
Ensure the following environment variables are configured to anable various features
- NBGALLERY_URL - Required for all but environment life
- ENABLED_AUTODOWNLOAD - Set to 1 to auto download recently executed and starred notebooks
- ENABLE_INSTRUMENTATION - Set to 1 to record cell executions to NBGallery
- NBGALLERY_TERMINATION_TIME - Date/Time string for when the Jupyter instance will terminate/delete contents (If empty, no date is displayed)
- NB_USER - username for user running Jupyter (needed for userpreferences)
Checking Configuration
- To ensure NBGALLERY_URL is set visit
/jupyterlab_nbgallery/environment
under the Jupyter server root- Example: If juptyer lab is at http://localhost/lab, visit http://localhost/jupyterlab_nbgallery/environment
Disabling individual lab extensions
To disable a specific lab extension use jupyter labextension disable @jupyterlab-nbgallery/<extensionname>
such as jupyter labextension disable @jupyterlab-nbgallery/autodownload
Build
Best to build it in a container with JupyterLab installed for the time being. Then: pip install jupyter_packaging python setup.py bdist_wheel
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jupyterlab_nbgallery-2.0.3.tar.gz
(215.2 kB
view hashes)
Built Distribution
Close
Hashes for jupyterlab_nbgallery-2.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec392472e3ac816467bdca8a8c43836e8e6cc1ab1ff7c35e430b9bc279bb93b8 |
|
MD5 | f8e71b8fbf2b2ab565ccc99e87fc99f8 |
|
BLAKE2b-256 | e9903f53000cc61eed494801409c6e6e191d5164b64e8a1b4c283a5e20c19e3c |
Close
Hashes for jupyterlab_nbgallery-2.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc694ae2e5d81a01e0fabb2f93de58c2bb2f440a1b9a501deeb1c9b4c7f802eb |
|
MD5 | 7e9da5fc457674ba95d92ac8e875d4e8 |
|
BLAKE2b-256 | d0c8f5c05fd09122227333a084342315944a68ba843ff9eef3bacf0dd0601902 |