Skip to main content

### 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

Metadata

Release files for cleanipynb 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cleanipynb 0.4.2
File Size Uploaded Provenance Actions
cleanipynb-0.4.2.tar.gz 3.4 kB Without provenance Details for cleanipynb-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cleanipynb 0.4.2
File Interpreter ABI Platform Actions
cleanipynb-0.4.2-py2.py3-none-any.whl Python 3, Python 2 none any Details for cleanipynb-0.4.2-py2.py3-none-any.whl

Total release size: 7.4 kB

Release files / cleanipynb-0.4.2.tar.gz

Download URL cleanipynb-0.4.2.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a7055dd8f124cdf1a11c5851af4fa37b3242b060108a0d99f4f579d451f87fa5
BLAKE2b-256 checksum
How to use checksums
a6ca148a1b40fa89de9651d1faf7fe5548769da2694464d1da2ae2d8a07735f7
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / cleanipynb-0.4.2-py2.py3-none-any.whl

Download URL cleanipynb-0.4.2-py2.py3-none-any.whl
Size 4.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3ead6598287fc949b8b983e52895f94d8ba81796bb4be897464bac40da3a6d51
BLAKE2b-256 checksum
How to use checksums
d05a4e50311ce4b10dc164a93d71f810ecddaaf4b7d824998bfe364a96668713
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for cleanipynb 0.4.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page