IPython Notebook 2-to-3
Converts IPython version 2 notebooks to IPython version 3.
I didn't find any tool online to convert ipython2 to ipython3 notebooks automatically, and it seemed simple enough, so I made my own.
I'm sure there are a lot of corner cases that are missed by the current script, but it should do the job for the vast majority of IPython notebooks. I suppose it would save people the pain of converting IPy notebooks manually or hacking up their own version of this.
Converts all code sections by invoking 2to3. Handles any IPython magic statements by saving them over the conversion.
ipy2to3 fromfile.ipynb tofile.ipynb converts ipython2 file
fromfile.ipynb to an ipython3 file
Thanks to user shimondoodkin for adding unit tests! To invoke call
python testing/test.py from the directory root.
Make a lint checker for style of notebooks as well (How would this report location of the problem? Maybe it could automatically fix the problems and re-save the notebook?).
Verify there's no collision of ipython magic statements with regular Python code.