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
File details
Details for the file notebook_shim-0.2.0.tar.gz
.
File metadata
- Download URL: notebook_shim-0.2.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdb81febb05932c6d19e44e10382ce05469cac5e1b6e99b49be6159ddb5e4804 |
|
MD5 | 2815eedabac675efd2d008237dc3fb07 |
|
BLAKE2b-256 | 11d540ebe523d6001ef2be1e9a1799af9c2d8a7a05e9557d2439f202a4c0e6a7 |
File details
Details for the file notebook_shim-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: notebook_shim-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 481711abddfb2e5305b83cf0efe18475824eb47d1ba9f87f66a8c574b8b5c9e4 |
|
MD5 | 0a4c294c60c8f056b460cf727a9d3fc5 |
|
BLAKE2b-256 | 651ba898f3bf3eb98a9fdb56cba21cb6c31d553f577501cccff7f6996ce5d2e7 |