Skip to content

i008/clean_ipynb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e79b1ae · Jul 14, 2019

History

22 Commits
Jul 1, 2019
Jul 14, 2019
Jul 3, 2019
Jul 1, 2019
Jul 2, 2019
Jul 2, 2019
Jul 1, 2019
Jul 1, 2019
Jul 3, 2019
Jul 1, 2019
Jul 3, 2019
Jul 2, 2019
Jul 14, 2019
Jul 1, 2019
Jul 14, 2019
Jul 3, 2019

Repository files navigation

cleanipynb

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:

pip install cleanipynb
cleanipynb path_to_your_notebook.ipynb

Demo:

Credits:

  • jupytext
  • importanize
  • autoflake
  • autopep8