https://github.com/mmore500/endomill
endomill lets a Jupyter notebook instantiate itself as a papermill template
https://github.com/mmore500/endomill
Last synced: 3 months ago
JSON representation
endomill lets a Jupyter notebook instantiate itself as a papermill template
- Host: GitHub
- URL: https://github.com/mmore500/endomill
- Owner: mmore500
- License: mit
- Created: 2022-03-06T02:19:38.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-23T02:51:08.000Z (about 2 years ago)
- Last Synced: 2025-01-20T19:52:17.626Z (4 months ago)
- Language: Python
- Size: 50.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
========
endomill
========.. image:: https://img.shields.io/pypi/v/endomill.svg
:target: https://pypi.python.org/pypi/endomill.. image:: https://img.shields.io/travis/mmore500/endomill.svg
:target: https://travis-ci.com/mmore500/endomill.. image:: https://readthedocs.org/projects/endomill/badge/?version=latest
:target: https://endomill.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Statusendomill 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.
.. code-block:: python3
import endomill
Instantiate & execute two copies of this notebook.
.. code-block:: python3
endomill.instantiate_over(
parameter_packs=[
{'parameter' : 'value1'},
{'parameter' : 'value2'},
],
)Supply papermill parameters.
(Remember to add notebook cell "parameters" tag for papermill.).. code-block:: python3
# register papermill parameters
parameter: strOverride automatic endomill instance output path, if desired.
.. code-block:: python3
endomill.add_instance_outpath('custom_outpath.endomill.ipynb')
Then do your Jupyter business as usual!
.. code-block:: python3
print('hello', parameter)
Credits
-------This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage