DiTo97 / notebook-parametrization

A cross-platform example of notebook parametrization in the background

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A cross-platform example of notebook parametrization in the background with papermill.

setup

git clone https://github.com/DiTo97/notebook-parametrization.git
cd notebook-parametrization
conda create --name=notebook-parametrization python=3.10
conda activate notebook-parametrization
python -m pip install --upgrade pip
python -m pip install -r requirements.txt

usage

.\run_notebook.bat <notebook> <config> [--configdir <configdir>] [--logdir <logdir>] [--background]  # windows
./run_notebook.sh  <notebook> <config> [--configdir <configdir>] [--logdir <logdir>] [--background]  # linux or macOS

example

.\run_notebook.bat notebook.ipynb norway --background  # windows
./run_notebook.sh  notebook.ipynb UK     --background  # linux or macOS

About

A cross-platform example of notebook parametrization in the background


Languages

Language:Batchfile 28.5%Language:Shell 26.8%Language:Jupyter Notebook 22.9%Language:Python 21.8%