Skip to main content

Reproduce Jupyter Notebooks inside Docker Containers.

Project description

nbreproduce

Reproduce Jupyter Notebooks inside Docker Containers using the nbreproduce CLI.

Installation:

$ pip install nbreproduce

Features:

  • Reproduce a Jupyter Notebook (URL or local file) inside a Docker container for consistent builds across all the devices capable of running docker and Python.

  • To test the hello_world.ipynb example in this repo.

$ nbreproduce --url https://github.com/MridulS/nbreproduce/blob/master/tests/hello_world.ipynb
  • The nbreproduce will create a new Jupyter notebook ending with filename-reproduce.ipynb in the same directory which is a copy of the original notebook but executed inside the docker container environment.

  • nbreproduce requires a special metadata tag (docker_image) inside in the Jupyter notebook to find the link to docker image on DockerHub. On the first run of nbreproduce with a normal Jupyter notebook it will prompt you to add a docker image tag, these docker images are built on top of Jupyter Docker-Stacks. The hello_world.ipynb example can run with the scipy-notebook standard image. Using the --docker flag you can point it towards the right docker image. (Currently only DockerHub imgages are supported)

$ nbreproduce --docker jupyter/scipy-notebook:latest hello_world.ipynb
  • The project is in alpha developement mode, so things will break. Don't use this in production. The documentation website doesn't exist yet, use nbreproduce -h to get a quick desciption of various flags.

Credits

This package was created with Cookiecutter_ and the audreyr/cookiecutter-pypackage_ project template.

Cookiecutter

audreyr/cookiecutter-pypackage

History

0.1.0 (2020-06-10)

  • Pre-alpha release to get the ball rolling.
  • 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

nbreproduce-0.1.0.tar.gz (107.5 kB view details)

Uploaded Source

Built Distribution

nbreproduce-0.1.0-py2.py3-none-any.whl (6.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file nbreproduce-0.1.0.tar.gz.

File metadata

  • Download URL: nbreproduce-0.1.0.tar.gz
  • Upload date:
  • Size: 107.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for nbreproduce-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3dee67c693fd9e1640c529ed49ba59fcd93fe18d4754b0aaa57b37dc37025ca9
MD5 bc85fbbe44e85cb6be877982b19e67c9
BLAKE2b-256 77fc77291d0f6ca3d19e6eafdca1991cedaa0405f8ec066cb23737f39627a058

See more details on using hashes here.

File details

Details for the file nbreproduce-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: nbreproduce-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for nbreproduce-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e4e71c97eff2193dc0a8ed4b167783799e8e37ce718253fcfad8d82f4f8fc116
MD5 43d9e4dee9c3d82ce3ad5b7259b7baa0
BLAKE2b-256 e35624371b80a0ec45d270ac1ba9a42fd527982027e27fc31d2c69b0244b3cb4

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