This is a Python 3 library to read/write cells programmatically in Jupyter notebooks which anticipates upcoming collaborative features in Jupyter.
We use this at O’Reilly Media for notebooks used to manage machine learning pipelines. That is to say, machines and people collaborate on documents, implementing a “human-in-the-loop” design pattern:
people adjust hyperparameters for the ML pipelines
machines write structured “logs” during ML modeling/evaluation
people run jupyter notebook via SSH tunnel for remote access
For more info about use cases for this library and active learning in general, see the JupyterCon 2017 talk Humans in the loop
Example Usage
The following script generates a Jupyter notebook in the test.ipynb file, then runs it:
python test.py jupyter notebook
Then launch the test.ipynb notebook and from the Cells menu select Run All to view results.
NB: whenever you use the put_df() function to store data as a Pandas dataframe be sure to include import pandas as pd at some earlier point in the notebook.
Dependencies and Installation
This code has dependencies on:
To install from PyPi:
pip install nbtransom
To install from this Git repo:
git clone https://github.com/ceteri/nbtransom.git cd nbtransom pip install -r requirements.txt
Kudos
Metadata
Release files for nbtransom 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nbtransom-1.0.1.tar.gz | 4.2 kB | Without provenance | Details for nbtransom-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nbtransom-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for nbtransom-1.0.1-py3-none-any.whl |
Total release size: 10.4 kB
Release files / nbtransom-1.0.1.tar.gz
| Download URL | nbtransom-1.0.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
271e4a1f071d43ebc16d3d4d4ed242ef27506bc7d620b119ce9cefba9570c51b
|
|
BLAKE2b-256 checksum How to use checksums |
73afa1bd16162caf5d0c384ae39b9b65bd64a3a8da3e9efbab7bb983a938d38e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / nbtransom-1.0.1-py3-none-any.whl
| Download URL | nbtransom-1.0.1-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6db18297e18064fc8c4e79c42d8433dd409a81a84323e21d15a346519c739964
|
|
BLAKE2b-256 checksum How to use checksums |
b21879bae38ff8aa2c5ac8cf96bdccad0eb372678870e279237df6d3bb6b2daa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for nbtransom 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.