Skip to main content

Jupyter Offline Notebook

Binder

Save and load notebooks to local-storage, even if you've lost your connection to the server.

Installation

pip install jupyter-offlinenotebook

This should automatically enable the extension. If it is not listed in jupyter nbextension list or jupyter serverextension list install and enable it:

jupyter nbextension install --py jupyter_offlinenotebook --sys-prefix
jupyter nbextension enable --py jupyter_offlinenotebook --sys-prefix

jupyter serverextension install --py jupyter_offlinenotebook --sys-prefix
jupyter serverextension enable --py jupyter_offlinenotebook --sys-prefix

Configuration

By default this extension will obtain a repository identifier from an environment variable BINDER_REPO_URL. You can change the name of the environment variable by setting c.OfflineNotebookConfig.repoid_variable in jupyter_notebook_config.py.

Usage

Offline notebook buttons

There are three new icons to:

  • download the in-memory (browser) state of the notebook
  • save the in-memory state of the notebook to local-storage
  • load a notebook from local-storage

Saving and loading uses the repository ID and the path of the current notebook. If you don't see the buttons check the Javascritp console log, it may mean no repository ID was found.

See example.ipynb

WARNING

This extension is still in development. It is only tested on Firefox. Breaking changes may occur in future.

There are several major limitations including:

  • There are no error messages, you must open the Javascript console to check whether save/load has worked.
  • The size of downloaded notebooks is limited by the browser.
  • A repository ID and path of the notebook within Jupyter Notebook are used, joined by a . This may change in future.

Metadata

Release files for jupyter-offlinenotebook 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jupyter-offlinenotebook 0.0.4
File Size Uploaded Provenance Actions
jupyter-offlinenotebook-0.0.4.tar.gz 3.9 kB Without provenance Details for jupyter-offlinenotebook-0.0.4.tar.gz

Release files / jupyter-offlinenotebook-0.0.4.tar.gz

Download URL jupyter-offlinenotebook-0.0.4.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f74f92993ede80724f895cd77f6a667aa7dd22546dcc8874697f8db33f7d7019
BLAKE2b-256 checksum
How to use checksums
04574d3139711173348f6134aa2d9e7853f6f14428569a40b74587e539c113e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.7

Security for jupyter-offlinenotebook 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page