# lab-extensions
Repo for JupyterLab/Retrolab/Notebookv7 NBGallery Extensions
# Included extensions
## Server extensions
jupyterlab-nbgallery
## Lab Extensions
* [autodownload](autodownload/README.md)
* [environment-Life](environment-life/README.md) - Does not work in Retrolab/Notebookv7 at this time
* [environment-registration](environment-registration/README.md)
* [gallery-menu](gallery-menu/README.md)
* [inject-uuid](inject-uuid/README.md) - Add the NBGallery UUID and Commit ID to the environment of the kernel
* [instrumentation](instrumentation/README.md) - Track cell execution metrics and submit them to NBGallery
* [userpreferences](userpreferences/README.md) - 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
Raw data
{
"_id": null,
"home_page": "https://github.com/nbgallery/lab-extensions",
"name": "jupyterlab-nbgallery",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "Jupyter, JupyterLab",
"author": "NBGallery",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/5e/81/bf74727e4aa89b1f84c438fc95d09fae334117e72892619059720e5a9170/jupyterlab_nbgallery-3.0.4.tar.gz",
"platform": "Linux",
"description": "# lab-extensions\n\nRepo for JupyterLab/Retrolab/Notebookv7 NBGallery Extensions\n\n# Included extensions\n\n## Server extensions\n\njupyterlab-nbgallery\n\n## Lab Extensions\n\n* [autodownload](autodownload/README.md)\n* [environment-Life](environment-life/README.md) - Does not work in Retrolab/Notebookv7 at this time\n* [environment-registration](environment-registration/README.md)\n* [gallery-menu](gallery-menu/README.md)\n* [inject-uuid](inject-uuid/README.md) - Add the NBGallery UUID and Commit ID to the environment of the kernel\n* [instrumentation](instrumentation/README.md) - Track cell execution metrics and submit them to NBGallery\n* [userpreferences](userpreferences/README.md) - Save JupyterLab prefernces to NBGallery and download them back to Jupyter\n\n# Installation\n- `pip install juptyerlab_nbgallery`\n- Restart Jupyter Server if already running\n\n# Configuration\n\nEnsure the following environment variables are configured to anable various features\n- NBGALLERY_URL - Required for all but environment life\n- ENABLED_AUTODOWNLOAD - Set to 1 to auto download recently executed and starred notebooks\n- ENABLE_INSTRUMENTATION - Set to 1 to record cell executions to NBGallery\n- NBGALLERY_TERMINATION_TIME - Date/Time string for when the Jupyter instance will terminate/delete contents (If empty, no date is displayed)\n- NB_USER - username for user running Jupyter (needed for userpreferences)\n\n# Checking Configuration\n - To ensure NBGALLERY_URL is set visit `/jupyterlab_nbgallery/environment` under the Jupyter server root\n - Example: If juptyer lab is at http://localhost/lab, visit http://localhost/jupyterlab_nbgallery/environment\n\n# Disabling individual lab extensions\nTo disable a specific lab extension use `jupyter labextension disable @jupyterlab-nbgallery/<extensionname>` such as `jupyter labextension disable @jupyterlab-nbgallery/autodownload`\n\n# Build\n\nBest to build it in a container with JupyterLab installed for the time being. Then:\npip install jupyter_packaging\npython setup.py bdist_wheel\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A JupyterLab Extension for NBGallery integration",
"version": "3.0.4",
"project_urls": {
"Homepage": "https://github.com/nbgallery/lab-extensions"
},
"split_keywords": [
"jupyter",
" jupyterlab"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "4ecbe3c62057bc220715339ab4d638f6e96581b1884767b0196615aa71bdd0a8",
"md5": "b81bb3c52ffb85aaeb7d0db3924f1a06",
"sha256": "024d686cefb6785cd1228cdfeb423b91de408b4770a7433a912e530bc7e30dca"
},
"downloads": -1,
"filename": "jupyterlab_nbgallery-3.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b81bb3c52ffb85aaeb7d0db3924f1a06",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 247714,
"upload_time": "2025-08-05T20:01:53",
"upload_time_iso_8601": "2025-08-05T20:01:53.650284Z",
"url": "https://files.pythonhosted.org/packages/4e/cb/e3c62057bc220715339ab4d638f6e96581b1884767b0196615aa71bdd0a8/jupyterlab_nbgallery-3.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "5e81bf74727e4aa89b1f84c438fc95d09fae334117e72892619059720e5a9170",
"md5": "b2ccf05930158497d3913caaa06b2266",
"sha256": "2d8d35af162f70ae4432551d3859969808c855e7ebfc7501ad98458617af4b7b"
},
"downloads": -1,
"filename": "jupyterlab_nbgallery-3.0.4.tar.gz",
"has_sig": false,
"md5_digest": "b2ccf05930158497d3913caaa06b2266",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 215871,
"upload_time": "2025-08-05T20:01:54",
"upload_time_iso_8601": "2025-08-05T20:01:54.983655Z",
"url": "https://files.pythonhosted.org/packages/5e/81/bf74727e4aa89b1f84c438fc95d09fae334117e72892619059720e5a9170/jupyterlab_nbgallery-3.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-05 20:01:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "nbgallery",
"github_project": "lab-extensions",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "jupyterlab-nbgallery"
}