Skip to content

Instantly share code, notes, and snippets.

View cfriedline's full-sized avatar

Chris Friedline cfriedline

View GitHub Profile
@cfriedline
cfriedline / 2to3_nb.py
Created December 18, 2015 00:25 — forked from takluyver/2to3_nb.py
Run 2to3 on IPython notebooks
#!/usr/bin/env python3
"""
To run: python3 nb2to3.py notebook-or-directory
"""
# Authors: Thomas Kluyver, Fernando Perez
# See: https://gist.github.com/takluyver/c8839593c615bb2f6e80
import argparse
import pathlib
from nbformat import read, write