Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lepisma/jrun
Run jupyter notebooks as command line scripts with variable overrides
https://github.com/lepisma/jrun
command-line-tool jupyter-notebook
Last synced: about 2 months ago
JSON representation
Run jupyter notebooks as command line scripts with variable overrides
- Host: GitHub
- URL: https://github.com/lepisma/jrun
- Owner: lepisma
- License: gpl-3.0
- Created: 2017-08-19T06:57:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-22T06:43:36.000Z (over 7 years ago)
- Last Synced: 2024-11-15T04:59:25.664Z (about 2 months ago)
- Topics: command-line-tool, jupyter-notebook
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
=============================
jrun
=============================Run jupyter notebooks as command line scripts with variable overrides
For making variables overridable, wrap them using ``jin`` as shown below
.. code-block:: python
from jrun import jin
# First parameter is identifier, second is default value
seed = jin("seed", 1234)
speed = jin("speed", 45)
trial_number = jin("tno", 1)# Other code
Running the notebook directly (``jrun notebook.ipynb``) will use the default
parameter values. To override any of them, pass another argument to jrun
specifying the override in plain python like ``jrun notebook.ipynb "tno = 2;
seed = 2313"``.