Skip to main content

Jupyter Notebook as a Jupyter Server Extension.

Project description

Jupyter Notebook as a Jupyter Server Extension

Testing nbclassic

NBClassic runs the Jupyter Notebook frontend on the Jupyter Server backend.

This project prepares for a future where JupyterLab and other frontends switch to Jupyter Server for their Python Web application backend. Using this package, users can launch Jupyter Notebook, JupyterLab and other frontends side-by-side on top of the new Python server backend.

Basic Usage

Install from PyPI:

> pip install nbclassic

This will automatically enable the extension in Jupyter Server.

Launch directly:

> jupyter nbclassic

Alternatively, you can run Jupyter Server and visiting the /tree endpoint:

> jupyter server

Further Details

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 NBClassicConfigShimMixin 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 nbclassic.shim import NBClassicConfigShimMixin

class MyApplication(NBClassicConfigShimMixin, 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

nbclassic-0.2.6.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

nbclassic-0.2.6-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file nbclassic-0.2.6.tar.gz.

File metadata

  • Download URL: nbclassic-0.2.6.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.6.0.post20201009 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for nbclassic-0.2.6.tar.gz
Algorithm Hash digest
SHA256 b649436ff85dc731ba8115deef089e5abbe827d7a6dccbad42c15b8d427104e8
MD5 682b7b9d6b0cc463d6271ba588b26b1f
BLAKE2b-256 f5a50af0271fd66195bfbdaa03b873b8d14e9050a5c5921afe8c35d80dd61417

See more details on using hashes here.

Provenance

File details

Details for the file nbclassic-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: nbclassic-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.6.0.post20201009 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for nbclassic-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0248333262d6f90c2fbe05aacb4f008f1d71b5250a9f737488e0a03cfa1c6ed5
MD5 ff4406b263fccbf09c7488ea9d8c5eb7
BLAKE2b-256 e6f0113b9a6975e53285c56091a250be4828dd20d80172620a4ff74ed26c9fe7

See more details on using hashes here.

Provenance

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