Re: How to convert ipython 2 notebooks to ipython 3?

Alan <[email protected]> Sat, 19 Nov 2016 18:55:12 +0000
Newsgroups gmane.comp.python.ipython.devel
Message-ID <CAEznbz=6y87RdktyKgXNDJUYH-CBHzooozu+DASaV7mfznRWOA@mail.gmail.com>
Fantastic Matthias!

Many thanks,

Alan

On 17 November 2016 at 21:00, Matthias Bussonnier <
[email protected]> wrote:

> 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 <[email protected]> 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
> > [email protected]
> > https://mail.scipy.org/mailman/listinfo/ipython-dev
> >
> _______________________________________________
> IPython-dev mailing list
> [email protected]
> https://mail.scipy.org/mailman/listinfo/ipython-dev
>



-- 
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
[email protected]
https://mail.scipy.org/mailman/listinfo/ipython-dev