DisJotter allows the user to interactively create a Docker image from a Jupyter Notebook.
Project description
DisJotter
DisJotter is a Jupyter Notebook extension that allows the user to interactively create a Docker image from a Jupyter Notebook. Our tool can be used to generate Docker images from single cells of a Jupyter Notebook. The generated image will run a web service that will output the specified cell. This includes image outputs like plots. Code introspection for Python enables the services to change cell output at service run-time.
Among other things, DisJotter is useful for reusing notebook components in workflows that support web services.
... More information to follow ...
Installation
DisJotter can be downloaded using pip. It then needs to be enabled using three Jupyter commands. Docker is required for the extension to have any effect.
$ [sudo] pip install disjotter
$ jupyter serverextension enable --py disjotter
$ jupyter nbextension install --py disjotter
$ jupyter nbextension enable --py disjotter
Development
To keep your system clean it is recommended to develop using Docker. The following command will run a Jupyter Notebook server with DisJotter enabled at http://localhost:8888. Autoreload is enabled for Python files, you will need to reload your browser to see changes in the front-end.
$ docker-compose up --build main
To test the helper server that runs inside of the container run the following command. This uses a dummy notebook that can be found in docker/helper_dummy
. The notebook will be available at http://localhost:10000
$ docker-compose up --build helper
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
Built Distribution
Hashes for DisJotter-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88a8a4ac1be2994d5c6c9b69625031a990341a97627f5b19c7787e6747a0a158 |
|
MD5 | 1089a6c2fd4dea1e8a182b3580fd2d53 |
|
BLAKE2b-256 | 8309d972c3292b7643145d33f668e12b5674593e4f73b05206a60f675079b9ab |