Skip to main content

A shim layer for notebook traits and config

Project description

Notebook Shim

This project provides a way for JupyterLab and other frontends to switch to Jupyter Server for their Python Web application backend.

Basic Usage

Install from PyPI:

pip install notebook_shim

This will automatically enable the extension in Jupyter Server.

Usage

This project also includes an API for shimming traits that moved from NotebookApp in to ServerApp in Jupyter Server. This can be used by applications that subclassed NotebookApp to leverage the Python server backend of Jupyter Notebooks. Such extensions should now switch to ExtensionApp API in Jupyter Server and add NotebookConfigShimMixin in their inheritance list to properly handle moved traits.

For example, an application class that previously looked like:

from notebook.notebookapp import NotebookApp

class MyApplication(NotebookApp):

should switch to look something like:

from jupyter_server.extension.application import ExtensionApp
from notebook_shim.shim import NotebookConfigShimMixin

class MyApplication(NotebookConfigShimMixin, ExtensionApp):

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

notebook_shim-0.1.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

notebook_shim-0.1.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file notebook_shim-0.1.0.tar.gz.

File metadata

  • Download URL: notebook_shim-0.1.0.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for notebook_shim-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7897e47a36d92248925a2143e3596f19c60597708f7bef50d81fcd31d7263e85
MD5 28c32e4e199c18ebcbfc57a0f1d5b60a
BLAKE2b-256 8014215050c5ee184bd60e7d1e9e7e68d09c4dcacb18d3fb49c1fff4e061b94f

See more details on using hashes here.

File details

Details for the file notebook_shim-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: notebook_shim-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for notebook_shim-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02432d55a01139ac16e2100888aa2b56c614720cec73a27e71f40a5387e45324
MD5 ba6d22d73e647ee53eb2ca871c8183a2
BLAKE2b-256 af1200c739649e40ec9dacd961c3198d87fd2dea2776f1df85e664d3e62ebe71

See more details on using hashes here.

Supported by

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