Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manics/jupyter-notebookparams
Takes query parameters from a url to create the first cell of a jupyter notebook.
https://github.com/manics/jupyter-notebookparams
jupyter jupyter-notebook jupyter-notebook-extension
Last synced: 2 months ago
JSON representation
Takes query parameters from a url to create the first cell of a jupyter notebook.
- Host: GitHub
- URL: https://github.com/manics/jupyter-notebookparams
- Owner: manics
- License: mit
- Created: 2019-09-04T21:01:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-06T15:30:35.000Z (about 3 years ago)
- Last Synced: 2024-10-01T16:18:54.105Z (3 months ago)
- Topics: jupyter, jupyter-notebook, jupyter-notebook-extension
- Language: JavaScript
- Size: 16.6 KB
- Stars: 16
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Jupyter Notebook Params
=======================
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/manics/jupyter-notebookparams/master?urlpath=notebooks%2Fexample.ipynb%3Fa%3D1%26b%3D%22whatever%22%26autorun%3Dtrue)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-prefixUsage
-----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 = FalseAdd the parameter `autorun=true` to automatically run the notebook.
**WARNING**: This extension does not parse the parameter values so arbitrary code can be executed in the parameter value.