[IPython-dev] How to convert ipython 2 notebooks to ipython 3?

Matthias Bussonnier bussonniermatthias at gmail.com
Thu Nov 17 16:00:42 EST 2016


Hello Alan,

If you install the recent beta of nbconvert (or wait a bit for it to
be stable), plus use https://pypi.python.org/pypi/jupytercontrib you
should be able to do :

    jupyter nbconvert --to 2to3 <mynotebook.ipynb>

This is based on
https://gist.github.com/takluyver/c8839593c615bb2f6e80 that can be ran
as a standalone script.

Hope that help and happy conversion to Python 3.
-- 
M

On Thu, Nov 17, 2016 at 12:56 PM, Alan <alanwilter at gmail.com> wrote:
> Is there any solution or workaround?
>
> I have more than 60 notebooks, some fairly long and I cannot simply go
> through all of them, so a 2to3 for *.ipynb would be right now my top sweet
> spot.
>
> Many thanks in advance,
>
> Alan
>
> --
> Alan Wilter SOUSA da SILVA, DSc
> Senior Bioinformatician, UniProt
> European Bioinformatics Institute (EMBL-EBI)
> European Molecular Biology Laboratory
> Wellcome Trust Genome Campus
> Hinxton
> Cambridge CB10 1SD
> United Kingdom
> Tel: +44 (0)1223 494588
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> https://mail.scipy.org/mailman/listinfo/ipython-dev
>



More information about the IPython-dev mailing list