Package to strip jupyter notebooks of their output and dress back up from these pajamas.
Project description
pajamas
Fancy light clothes for jupyter notebooks to sleep in.
Motivation
We love jupyter notebooks: they allow visual, intuitive, and fast data analysis, code testing and development, as well as documentation and sharing of results.
However, when sharing jupyter notebooks via repositories, two drawbacks become painfully apparent:
- jupyter notebooks can get extremely large because they often include all of their output.
- jupyter notebooks change whenever they are being worked with, even without changes to the code.
Of course, the first drawback can be avoided by diligently cleaning the notebook before submitting to the repo, and the second by resetting the file before submitting. In practice, however, we find that this is rarely done consistently.
Summary
In a nutshell, the pajamas package simply strips the jupyter notebook of its output. Additionally, it provides an output-less format using the .pajamas
extension, which facilitates working with templates from which jupyter notebooks are created. This enables us to block any .ipynb
files from being committed to a repository (by including the extension to .gitignore
), which keeps repositories smaller.
We see jupyter notebooks as a worker having all tools, materials, and results in hand, while the pajamas format retains all of the knowledge and ability (the code) but removes all of the heavy tools, materials, and results (the output contained in the jupyter notebook). Just like the worker would not go to sleep with all of the tools, neither should a jupyter notebook. Both use pajamas.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file pajamas-0.1a2.tar.gz
.
File metadata
- Download URL: pajamas-0.1a2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af518fba930c0ed8267c28d4a4977a0a38242d1b440b28b8514df4bf860dfe2f |
|
MD5 | 7e65bcd23ac13350c8f7ad4c858ef0b9 |
|
BLAKE2b-256 | 46908bcb17e7389888e1e76bffd866c607281cf51150404a0d9a2a4966694244 |
File details
Details for the file pajamas-0.1a2-py3-none-any.whl
.
File metadata
- Download URL: pajamas-0.1a2-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73ef008a2e4033a153c848706eb760e599347ff45c14c9d15acd88d21fb78058 |
|
MD5 | b4393852c9503db49d01c6cbf34f845c |
|
BLAKE2b-256 | 9358001c2db8c425e7333dc5739f7d1bcd553ca1e3cb5cb6cd694b8210931bda |