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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for notebook_shim-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 411a5be4e9dc882a074ccbcae671eda64cceb068767e9a3419096986560e1cef |
|
MD5 | 5c7df4ed2712480c0a8cd85dc2e70577 |
|
BLAKE2b-256 | f933bd5b9137445ea4b680023eb0469b2bb969d61303dedb2aac6560ff3d14a1 |