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-3.0.2.tar.gz
(215.5 kB
view hashes)
Built Distribution
Close
Hashes for jupyterlab_nbgallery-3.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16d4b8f543ce1884953e42c55e8edfb20953afd69086a744ba4e41ef2490513e |
|
MD5 | c5da3a761dff3da1ebee368ac1211cc1 |
|
BLAKE2b-256 | 9b357dd758bb46293c66bac79c372ad42ccef331240b7ea01339cbf5570a6d9c |
Close
Hashes for jupyterlab_nbgallery-3.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a383c738c0daa4d7587d9d730753108564879c0ba6439baf9a545e9349214cd |
|
MD5 | 022aba91c920dff7d12468cb92535cf0 |
|
BLAKE2b-256 | 46af8fd1034f08cbf2054dd21b2550a888cd699d45352c01afa17db65701a1fa |