Save and load notebooks to local-storage
Project description
Jupyter Offline Notebook
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
This extension can be configured in jupyter_notebook_config.py
by setting the following properties of c.OfflineNotebookConfig
:
repository_id
: A callable that returns the repository ID. This is used when storing and retrieving notebooks. Default is the value of theBINDER_REPO_URL
environment variable.repository_ref_url
: A callable that returns the repository reference URL. Default is the value of theBINDER_REF_URL
environment variable.binder_persistent_url
: A callable that returns the repository reference URL. Default is the values of theBINDER_LAUNCH_HOST
andBINDER_PERSISTENT_REQUEST
environment variables.
Usage
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
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
File details
Details for the file jupyter-offlinenotebook-0.0.6.tar.gz
.
File metadata
- Download URL: jupyter-offlinenotebook-0.0.6.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aac995350d233b94dceede14ce19b5fb4312380c2ed4aafe68baba8140a4de86 |
|
MD5 | d4962d2084ad0bfccb8fee205e17a517 |
|
BLAKE2b-256 | eaa4b0cd1948d0c5d790d4b41b53912c43fc226ae4085286e3c40d468d1dd9ea |