Jupyter Browser Reload
Flow-saving tool that automatically reloads Jupyter Notebook in a browser when its source .py file is changed and executes all changed cells.
It uses
- Jupytext - to synchronize .ipynb and .py files
- Watchdog - to watch for .py file changes
- Selenium - to have a full control over a browser with opened Jupyter Notebook
Why Jure
Jupytext is a great tool that for instance allows user to benefit from static code analysis of Jupyter Notebooks. However I always struggled with this workflow: after each edit of .py file I needed to manually reload browser and execute all changed cells.
Jure automatically reloads browser on each .py file change, so it would instantly show actual notebook content. Additionally it scrolls to last changed cell and executes all cells that were changed.
Installation
The most non-trivial part is install ChromeDriver on you computer, here's sample link for Ubuntu for reference. After that it's simply
pip install jure
Usage
First, you need to sync your .ipynb file with .py with Jupytext, see official manual.
Then launch a Jupyter Notebook server (jupyter notebook ...).
Then run
jure --token=[TOKEN] --jupyter_root_dir=[ROOT_DIR] --notebook_path=[NOTEBOOK_PATH]
Where [TOKEN] as an access token which is required to access Jupyter Notebook from browser, [ROOT_DIR] is a path to directory from which jupyter notebook ... command was executed and [NOTEBOOK_PATH] is a path to the notebook .ipynb file you'll work with.
Limitations
This is an experimental and unstable product, any issues, suggestions, feature requests and PRs are appreciated. Current problems:
- Only Google Chrome web browser is supported
- Selenium might be inconvenient
- No password auth / remote notebook hosts
- In some rare cases user needs to reload browser tab manually
- For large notebooks page reload might be too slow (tough one)
Metadata
Release files for jure 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jure-0.3.1.tar.gz | 6.3 kB | Without provenance | Details for jure-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jure-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for jure-0.3.1-py3-none-any.whl |
Total release size: 13.3 kB
Release files / jure-0.3.1.tar.gz
| Download URL | jure-0.3.1.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b87493965afa8a1a0ce5cfb160f0b2ff07e2d8549637e8d94fb71a2b781484f0
|
|
BLAKE2b-256 checksum How to use checksums |
d657aa6d3638a88129bac960d5d73418ad45acd7386b4f2d9c1a2ee3884467f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.7.7 Linux/5.4.0-51-generic
|
Release files / jure-0.3.1-py3-none-any.whl
| Download URL | jure-0.3.1-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5abd082543d3b7d136af2fc04446d9889404238789bba7228f0a345d58690ee4
|
|
BLAKE2b-256 checksum How to use checksums |
cd33709cc51a3edfd78776bcb6ac46976fbbb2712bc871694d9bf7fed7553bd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.7.7 Linux/5.4.0-51-generic
|
Security for jure 0.3.1
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.