Cleanup imports in jupyter notebooks
Project description
### cleanipynb
[![](https://img.shields.io/pypi/v/clean_ipynb.svg)](https://pypi.python.org/pypi/cleanipynb) [![](https://img.shields.io/travis/i008/clean_ipynb.svg)](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: ![](beforeafter.gif)
### 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
Hashes for cleanipynb-0.4.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ead6598287fc949b8b983e52895f94d8ba81796bb4be897464bac40da3a6d51 |
|
MD5 | 0dac088fec6be80375493ce486b64594 |
|
BLAKE2b-256 | d05a4e50311ce4b10dc164a93d71f810ecddaaf4b7d824998bfe364a96668713 |