Skip to main content

Code Snippets Extension for JupyterLab (multi-menus)

Project description

jupyterlab-snippets-multimenu

Snippets extension with multiple menu support for JupyterLab.

This extension is composed of a Python package named jupyterlab-snippets-multimenus for the server extension and a NPM package named jupyterlab-snippets-multimenus for the frontend extension.

This repo is forked from the jupyterlab-snippets project.

Requirements

  • JupyterLab >= 2.0
  • Node.js

Install

pip install jupyterlab-snippets-multimenus

Rebuild JupyterLab:

jupyter lab build

Usage

Add snippets in [jupyter_data_dir]/multimenus_snippets

To find the Jupyter data directory, run:

$ jupyter --path

Any path under data: will do. We recommend using the virtual environment shared directory (e.g. $VENVDIR/share/jupyter/) (please create the directory if not existed)

Snippets will be organized in menus following the structure of the directories. The directories directly under multimenus_snippets/ will be used to create menus.

The order of menus and sub-menus can be specified using a JSON file. An example is given in example_snippets/multimenus_snippets_config/snippet_config.json. This file should be put under [jupyter_data_dir]/multimenus_snippets_config/ to take effect. If this config file is not provided, the menu will be created with all files in the directory with a default ordering.

Quick start with examples

Example snippets directories are provided in example_snippets/.

To test with automatically generated order configuration, do

cp -r example_snippets/multimenus_snippets $VENVDIR/share/jupyter/

and start/refresh jupyter-lab

To test configurable ordering, do

cp -r example_snippets/multimenus_snippets_config $VENVDIR/share/jupyter/

and start/refresh jupyter-lab

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-snippets-multimenus-0.1.2.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file jupyterlab-snippets-multimenus-0.1.2.tar.gz.

File metadata

  • Download URL: jupyterlab-snippets-multimenus-0.1.2.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

File hashes

Hashes for jupyterlab-snippets-multimenus-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a787b8e6c3bff205a6705c699e2b3d97c28692fca0b2071578be4d4e44d16e47
MD5 e9a3e1b03dc1a5225728848b9f2c159b
BLAKE2b-256 a7c75f5bfa591b2841ac0f351d72d80498eefb4dabc3890a55aae10a36c2c3c0

See more details on using hashes here.

File details

Details for the file jupyterlab_snippets_multimenus-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: jupyterlab_snippets_multimenus-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

File hashes

Hashes for jupyterlab_snippets_multimenus-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 038923b00a18327acea59af9feac8fc8c4ccd246048e65b643ee0c5604184ee9
MD5 1b8fe60428af6d461fb542d7e3858da7
BLAKE2b-256 3642e85c1ad4fa44af47e0240d714e6c8b55afcc30e47aaea5808d23ac15c309

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