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.2.tar.gz
(215.2 kB
view hashes)
Built Distribution
Close
Hashes for jupyterlab_nbgallery-2.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e82e9ac073c667e7abd7b352e65cde9d833bab791960a25f06d10a5c9e8db76 |
|
MD5 | a74f4d41eb1032771bd34f9e43c03adb |
|
BLAKE2b-256 | e2f8c7596b970d8d1fb324dc067a428b4534dff76f0500e9a6e3d99a908f163a |
Close
Hashes for jupyterlab_nbgallery-2.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 540a350015545fd192709e7a3aba7fb375b7f2f3de91a12e9edfe95b504939fa |
|
MD5 | 4c600dbb8ce6ace05f342c8929aa9dcc |
|
BLAKE2b-256 | 582267a3a0f3b0b0358cdcddb512516866882e729cc9cb1691d2a2b18e2a969d |