Skip to main content

endomill lets a Jupyter notebook instantiate itself as a papermill template

Project description

endomill

https://img.shields.io/pypi/v/endomill.svg https://img.shields.io/travis/mmore500/endomill.svg Documentation Status

endomill lets a Jupyter notebook instantiate itself as a papermill template.

Plays nice across both interactive and automatic (i.e., nbconvert, nbclient) contexts.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

endomill-0.1.2.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

endomill-0.1.2-py2.py3-none-any.whl (8.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file endomill-0.1.2.tar.gz.

File metadata

  • Download URL: endomill-0.1.2.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for endomill-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6941053e4cbc455a560f8712fe981645f107dd9d49c1a4ba3f4b6fa7711848e2
MD5 f6a2d1515de245f964f8bf2947ec20ab
BLAKE2b-256 4ec4b7f8a2c54d3e5ba0e0c2704b9a9fd4a8e3d69ce1629168cbddc0ce83d20e

See more details on using hashes here.

File details

Details for the file endomill-0.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: endomill-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for endomill-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3205090b39c902af539e037a0e28e6836e6473f190d064ab9aac851f9f2b4dde
MD5 16396ec5cbb90d630d07fcdce6559b8a
BLAKE2b-256 64962f3ea90926311b67629324c40608e9e30e0c5d93f57108caee7f121c939a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page