From takowl at gmail.com Mon Nov 7 16:39:52 2016 From: takowl at gmail.com (Thomas Kluyver) Date: Mon, 7 Nov 2016 13:39:52 -0800 Subject: [IPython-dev] Debugger behaviour - do you like the new 'smart command mode' feature? Message-ID: The behaviour of the Python debugger changed a bit for 5.0. Previously, the debugger commands (such as 'c' for continue) would shadow Python variables with those names; so to show the variable c, you would have to type print(c). The new 'smart command mode', from pdb++, prefers the variable names. So if a variable 'c' is defined, then entering 'c' in the debugger will show that value rather than continuing. Any command can be used explicitly with a prefix, e.g. '!!c'. Some people have found this new behaviour awkward, and we're considering reverting it. Whether you like the new feature or not, please go and vote on this issue using the emoji on Github (thumbs up to go back to the old, thumbs down to keep 'smart command mode'): https://github.com/ipython/ipython/issues/10037 Thanks, Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From alanwilter at gmail.com Thu Nov 17 15:56:44 2016 From: alanwilter at gmail.com (Alan) Date: Thu, 17 Nov 2016 20:56:44 +0000 Subject: [IPython-dev] How to convert ipython 2 notebooks to ipython 3? Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bussonniermatthias at gmail.com Thu Nov 17 16:00:42 2016 From: bussonniermatthias at gmail.com (Matthias Bussonnier) Date: Thu, 17 Nov 2016 13:00:42 -0800 Subject: [IPython-dev] How to convert ipython 2 notebooks to ipython 3? In-Reply-To: References: Message-ID: 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 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 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 > From alanwilter at gmail.com Sat Nov 19 13:55:12 2016 From: alanwilter at gmail.com (Alan) Date: Sat, 19 Nov 2016 18:55:12 +0000 Subject: [IPython-dev] How to convert ipython 2 notebooks to ipython 3? In-Reply-To: References: Message-ID: Fantastic Matthias! Many thanks, Alan On 17 November 2016 at 21:00, Matthias Bussonnier < bussonniermatthias at gmail.com> 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 > > 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 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 > > > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ibotsis at isc.tuc.gr Wed Nov 30 03:03:36 2016 From: ibotsis at isc.tuc.gr (Ioannis Botsis) Date: Wed, 30 Nov 2016 10:03:36 +0200 Subject: [IPython-dev] IPython Clusters Message-ID: Hello there, I currently initiate ipcluster using PBS mode. In c.BatchSystemLauncher.batch_template_file = 'mytemplate' file i describe the commands to the PBS system. Everything works fine. The c.PBSEngineSetLauncher.batch_file_name = 'my_pbs_file' is created according to the "mytemplate". When i start the # of engines in the tab "IPython Clusters" of jupyter my_pbs_file do not submited automaticaly. If i submit my_pbs_file from the command prompt, everything works fine. How can i adjust configuration files in order to my_pbs_file be submited automaticaly when i start engines form jupyter? Thanks jb From benjaminrk at gmail.com Wed Nov 30 03:59:07 2016 From: benjaminrk at gmail.com (MinRK) Date: Wed, 30 Nov 2016 09:59:07 +0100 Subject: [IPython-dev] IPython Clusters In-Reply-To: References: Message-ID: On Wed, Nov 30, 2016 at 9:03 AM, Ioannis Botsis wrote: Hello there, > > I currently initiate ipcluster using PBS mode. In > > c.BatchSystemLauncher.batch_template_file = 'mytemplate' > > file i describe the commands to the PBS system. Everything works fine. > > The > c.PBSEngineSetLauncher.batch_file_name = 'my_pbs_file' > > is created according to the "mytemplate". > > When i start the # of engines in the tab "IPython Clusters" of jupyter > my_pbs_file do not submited automaticaly. > If i submit my_pbs_file from the command prompt, everything works fine. > > How can i adjust configuration files in order to my_pbs_file be submited > automaticaly when i start engines form jupyter? > > You will need to make PBS the default engine launcher in your ipcluster_config.py file to use PBS by default: c.IPClusterEngines.engine_launcher_class = 'PBS' -MinRK Thanks > > jb > _______________________________________________ > IPython-dev mailing list > IPython-dev at scipy.org > https://mail.scipy.org/mailman/listinfo/ipython-dev > ? -------------- next part -------------- An HTML attachment was scrubbed... URL: