Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/i008/clean_ipynb
cleanup messy jupyter notebooks
https://github.com/i008/clean_ipynb
autoflake autopep8 ipynb jupyter jupyter-notebook linting notebook
Last synced: 7 days ago
JSON representation
cleanup messy jupyter notebooks
- Host: GitHub
- URL: https://github.com/i008/clean_ipynb
- Owner: i008
- License: mit
- Created: 2019-07-01T22:49:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-14T11:03:44.000Z (over 5 years ago)
- Last Synced: 2025-02-01T10:41:37.680Z (19 days ago)
- Topics: autoflake, autopep8, ipynb, jupyter, jupyter-notebook, linting, notebook
- Language: Python
- Homepage:
- Size: 183 KB
- Stars: 17
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
README
### 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 autopep8All 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