2016-12-11 16:31:08 +13:00
2016-12-11 16:31:08 +13:00
2016-12-11 16:31:08 +13:00
2016-12-10 21:19:24 +01:00
2016-12-11 16:31:08 +13:00

A 2to3 converter

This extension converts python2 code in a notebook's code cell to python3 code. Under the hood, it uses Pythons build in 2to3 function.

The project was forked from code_prettify by @jfbercher, retaining most of the code. The 2to3 conversion is based on 2to3_nb.py by @takluyver and @fperez.

[//]: # (Possibly it will be extended to use the futurize functions so it can convert both ways.)

Installation

If you use jupyter-contrib-nbextensions, proceed as usual.

Otherwise, you can still install/try the extension from my personal repo, using

jupyter nbextension install https://github.com/EWouters/2to3_cell/archive/master.zip --user
jupyter nbextension enable 2to3_cell-master/2to3_cell

To remove

jupyter nbextension uninstall 2to3_cell-master/2to3_cell
S
Description
A collection of various notebook extensions for Jupyter
Readme
40 MiB
Languages
JavaScript 42.4%
HTML 28.2%
CSS 21.4%
Python 5.3%
TeX 1.7%
Other 0.9%