Skip to main content

notebook templates for jupyterlab

Project description

Support for jupyter notebook templates in jupyterlab

Build Status codecov PyPI PyPI npm FINOS Active Binder

Install

PyPI

jupyterlab_templates is available on PyPI:

pip install jupyterlab_templates

Conda

jupyterlab_templates is also available on conda-forge:

conda install -c conda-forge jupyterlab_templates

Jupyter Server/JupyterLab Extension

jupyter labextension install jupyterlab_templates
jupyter server extension enable --py jupyterlab_templates

Adding templates

install the server extension, and add the following to jupyter_notebook_config.py

c.JupyterLabTemplates.template_dirs = ['list', 'of', 'template', 'directories']
c.JupyterLabTemplates.include_default = True
c.JupyterLabTemplates.include_core_paths = True

Templates for libraries

The extension will search subdirectories of each parent directory specified in template_dirs for templates. Note! Templates in the parent directories will be ignored. You must put the templates in subdirectories, in order to keep everything organized.

If include_default = True the notebook_templates directory under the jupyter data folder is one of the default parent directories. Thus, if you have tutorials or guides you'd like to install for users, simply copy them into your jupyter data folder inside the notebook_templates directory, e.g. /usr/local/share/jupyter/notebook_templates/bqplot for bqplot.

Flags

  • template_dirs: a list of absolute directory paths. All .ipynb files in any subdirectories of these paths will be listed as templates
  • include_default: include the default Sample template (default True)
  • include_core_paths: include jupyter core paths (see: jupyter --paths) (default True)

Development

See CONTRIBUTING.md for guidelines.

License

This software is licensed under the Apache 2.0 license. See the LICENSE and AUTHORS files for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyterlab_templates-0.4.0.tar.gz (302.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyterlab_templates-0.4.0-py3-none-any.whl (160.7 kB view details)

Uploaded Python 3

File details

Details for the file jupyterlab_templates-0.4.0.tar.gz.

File metadata

  • Download URL: jupyterlab_templates-0.4.0.tar.gz
  • Upload date:
  • Size: 302.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for jupyterlab_templates-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e9fc514791a648835aaa9cce3a7bdef387280929cd0959859980ad074c6569b6
MD5 2253e202d9cbfd588c42977e99567a1d
BLAKE2b-256 154a635a7147c1ce3c41c57b28a074e443a8daf8dbbf6914abd0a8b5b97c716d

See more details on using hashes here.

File details

Details for the file jupyterlab_templates-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyterlab_templates-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8eb042b85777df6b78683fa351a0a32e2c1eab475a8a7993d81888218cc61256
MD5 8c1116e85bef48bf39d0ca1dcd5853bd
BLAKE2b-256 cf8d0a11d329beda943742e3502e76d9fabc9d9e3feedba4dc5b8e3a2f4e9089

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page