Cleanup imports in jupyter notebooks
Project description
### cleanipynb
[](https://pypi.python.org/pypi/cleanipynb) [](https://travis-ci.org/i008/clean_ipynb)
This package will cleanup your jupyter notebook by:
removing unused imports (globally)
moving all imports to the first cell and reordering them
reformatting your code with autopep8
All this with preserving the cell structure thanks to jupytext smart export to python features.
> WARNING: Cleaning happens in-place - Be careful
### Usage:
`bash pip install cleanipynb cleanipynb path_to_your_notebook.ipynb `
### Demo: 
### Credits:
jupytext
importanize
autoflake
autopep8
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cleanipynb-0.4.2.tar.gz.
File metadata
- Download URL: cleanipynb-0.4.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.10.0 pkginfo/1.4.1 requests/2.11.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7055dd8f124cdf1a11c5851af4fa37b3242b060108a0d99f4f579d451f87fa5
|
|
| MD5 |
db5a31b25ea7d68202609d238b2f7672
|
|
| BLAKE2b-256 |
a6ca148a1b40fa89de9651d1faf7fe5548769da2694464d1da2ae2d8a07735f7
|
File details
Details for the file cleanipynb-0.4.2-py2.py3-none-any.whl.
File metadata
- Download URL: cleanipynb-0.4.2-py2.py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.10.0 pkginfo/1.4.1 requests/2.11.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ead6598287fc949b8b983e52895f94d8ba81796bb4be897464bac40da3a6d51
|
|
| MD5 |
0dac088fec6be80375493ce486b64594
|
|
| BLAKE2b-256 |
d05a4e50311ce4b10dc164a93d71f810ecddaaf4b7d824998bfe364a96668713
|