endomill lets a Jupyter notebook instantiate itself as a papermill template
Project description
endomill
endomill lets a Jupyter notebook instantiate itself as a papermill template.
Plays nice across both interactive and automatic (i.e., nbconvert, nbclient) contexts.
Free software: MIT license
Documentation: https://endomill.readthedocs.io.
Here’s what cells from a notebook using endomill might look like.
import endomill
Instantiate & execute this two copies of this notebook.
endomill.instantiate_over(
parameter_packs=[
{'parameter' : 'value1'},
{'parameter' : 'value2'},
],
)
Supply papermill parameters. (Remember to add notebook cell “parameters” tag for papermill.)
# register papermill parameters
parameter: str
Override automatic endomill instance output path, if desired.
endomill.add_instance_outpath('custom_outpath.endomill.ipynb')
Then do your Jupyter business as usual!
print('hello', parameter)
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.0.0 (2022-02-22)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for endomill-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba96f1f808374556cc2d809d87734f71e40f0dfe21242bd102aaa7e38b71e146 |
|
MD5 | 8c26c771aa13d065da67df190393a28a |
|
BLAKE2b-256 | 81f81cac5b9d2f79c37bbd21a6456f7215ad36cec19a15f7983832c915c12837 |