Skip to main content

Cleanup Jupyter Notebook files

Project description

Jupyter notebook cleanup

Working with PyCharm and your Jupyter notebooks becoming quite heavy and slow down your system? This project contains some tools to cleanup you Jupyter notebooks.


You may want to remove the output of all cells since loading the notebook takes ages.

Load a jupyter notebook

import jpcleanup as jpc

path, content = jpc.load('test-notebook') # or with .ipynb

reset the output of all cells

content = jpc.clear_field(content)

and write the result back to either the same file, path) 

or a new file, 'test-result') # or with .ipynb


Either clone this project with

git clone

to extend the functionality of the project or, since the the project is hosted on PyPi, install it with

pip install jp-cleanup


Copyright (C) 2019 Lars Klitzke,

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Built Distribution

jp_cleanup-0.1.0-py3-none-any.whl (4.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page