mirror of
https://github.com/wassname/jupyter_contrib_nbextensions.git
synced 2026-08-10 12:20:38 +08:00
f0bfde8eeb384cb50802d0c7dd52225ef4f80145
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
Languages
JavaScript
42.4%
HTML
28.2%
CSS
21.4%
Python
5.3%
TeX
1.7%
Other
0.9%
