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.2.2.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

notebook_shim-0.2.2-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: notebook_shim-0.2.2.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for notebook_shim-0.2.2.tar.gz
Algorithm Hash digest
SHA256 090e0baf9a5582ff59b607af523ca2db68ff216da0c69956b62cab2ef4fc9c3f
MD5 fe31bfdbe9e3250c2bbc793498a41460
BLAKE2b-256 98293b1be2556ebb55053ffc2d2cac7bf2d611827a2cf23e1f34acc1c811d23f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for notebook_shim-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9c6c30f74c4fbea6fce55c1be58e7fd0409b1c681b075dcedceb005db5026949
MD5 4df814d2efa0bd88511db9cde73bef54
BLAKE2b-256 2934b3d57a23287c55fe964da403bb5457baacc2c0edc1fc3bf2739d4a958d90

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