Skip to content

Instantly share code, notes, and snippets.

@feeeper
feeeper / remove_output.py
Created August 20, 2018 09:46 — forked from damianavila/remove_output.py
Remove output from IPython notebook from the command line (dev version 1.0, python 3)
"""
Usage: python remove_output.py notebook.ipynb [ > without_output.ipynb ]
Modified from remove_output by Minrk
"""
import sys
import io
import os
from IPython.nbformat.current import read, write