Pass URL parameters to a Jupyter notebook
Project description
Jupyter Notebook Params
Takes query parameters from a url to update a parameter cell of a jupyter notebook.
Installation
pip install jupyter-notebookparams
This should automatically enable the extension. If it is not listed in jupyter nbextension list
install and enable it:
jupyter nbextension install --py jupyter_notebookparams --sys-prefix
jupyter nbextension enable --py jupyter_notebookparams --sys-prefix
Usage
Create a notebook cell that starts with the exact string # Parameters:
Add parameters to the URL of a notebook, e.g. http://example.org/notebook.ipynb?a=1&b=False
.
The content of the first cell starting with # Parameters:
will be replaced with the passed parameters, e.g.
# Parameters:
a = 1
b = False
Add the parameter autorun=true
to automatically run the notebook.
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
File details
Details for the file jupyter-notebookparams-0.0.1.tar.gz
.
File metadata
- Download URL: jupyter-notebookparams-0.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37bf3c2bf0fb115245230bd1169aff7f712a7c118443c76f79a1cfb2dbe6174a |
|
MD5 | eb7a52cd8b1c2f1c1138bd995c5d31b6 |
|
BLAKE2b-256 | 6c42aa4ac9732df0d63e417de90d4015683c66f819c65458e2a87a22be4ea52f |