Jupyter Contrib Nbextensions

0.7.0 · active · verified Wed Apr 15

Jupyter Contrib Nbextensions is a collection of community-contributed unofficial extensions that enhance the functionality of the classic Jupyter Notebook interface. These extensions are primarily written in JavaScript and are loaded directly in the browser. The library, currently at version 0.7.0, is maintained independently and aims to provide various productivity and usability enhancements for Jupyter Notebook users. While the core package updates are infrequent (last release Nov 2022), the collection of extensions remains a popular way to customize the classic notebook experience.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to install the `jupyter_contrib_nbextensions` Python package and then install its client-side JavaScript and CSS files for the current user. It also ensures the `jupyter_nbextensions_configurator` is enabled, which provides a 'Nbextensions' tab in the Jupyter Notebook interface for easy management of the extensions. While individual extensions can be enabled via command line, the GUI configurator is the recommended way for most users.

# 1. Install the main Python package (if not already done)
pip install jupyter_contrib_nbextensions

# 2. Install the JavaScript and CSS files to the Jupyter data directory
#    Use --user for a user-specific installation, or --sys-prefix for a virtual environment.
!jupyter contrib nbextension install --user

# 3. Enable the nbextensions configurator (usually enabled by default with install)
!jupyter nbextensions_configurator enable --user

# 4. Launch Jupyter Notebook and navigate to the 'Nbextensions' tab
#    (This step is manual, outside of this script)
#    You can then enable individual extensions like 'Table of Contents (2)' or 'Codefolding'.

# Example: To programmatically enable a specific extension (e.g., Codefolding):
# !jupyter nbextension enable codefolding/main --user

print("Jupyter Contrib Nbextensions installed and configurator enabled. Please launch Jupyter Notebook to manage extensions.")

view raw JSON →