r/IPython • • Feb 28 '15

IPython 3.0 Released!

http://mail.scipy.org/pipermail/ipython-dev/2015-February/016009.html
28 Upvotes

14 comments sorted by

2

u/[deleted] Feb 28 '15

I have a couple questions I couldn't find the answer to:

Why am I only seeing one kernel option? I can only use the Python3 kernel. I do have python2.7 and R installed.

How do you display a slideshow? I see the slideshow toolbar option for editing a presentation. But I don't see how to actually view the presentation.

2

u/NomadNella Mar 01 '15

I found this but I also am only seeing one kernel at a time even though I have Python 3.4 and Python 2.7. I think that part of Jupyter needs to be installed separately to get the kernel switching though it is not mentioned on the docs page.

As for the slideshow I don't know if there are other native options now but I start my at the command line with,

  ipython nbconvert notebook_name.ipynb --to slides --post serve

There is a extension out there I've seen that lets you do it from within the notebook but I've never had the need to install it so I don't know what it is called. Something to do with live slideshow I think.

Hopefully someone with a little more expertise will be able to provide further information.

2

u/NomadNella Mar 05 '15

Missing kernel solution found here.

1

u/masasin Feb 28 '15

What are the major changes?

1

u/lacunosum Feb 28 '15

So I upgraded and now matplotlib figure windows don't show up (OS X backend from terminal IPython). I'm going back to 2.4.1 for now, but anyone have a clue?

2

u/NomadNella Mar 01 '15

I think matplotlib may have gotten uninstalled. I had to upgrade tornado and in the process had to manually uninstall the old version which knocked out matplotlib too. I think if you reinstall matplotlib with pip install it should work. (I haven't gotten around to trying this myself.)

1

u/lacunosum Mar 01 '15

Well, matplotlib was still there in my conda environment, since I could run %matplotlib and plt.figure(), which returned a figure object but no window was brought up. It was as if the session wasn't in gui mode, so I tried explicitly calling it with --pylab and --matplotlib, but no luck. Anyway, I have to get work done for now, so back in 2.4, but will try again later on.

1

u/NomadNella Mar 01 '15

I just tried it in an existing notebook and did not have a problem. I did have the

 %matplotlib inline 

flag prior to making a plot but that has been required since version 2.0 I think. Additionally, though I had to uninstall matplotlib to install the new version of tornado, I did not have to re-install matplotlib. However this is most likely because I had either previously installed an upgraded version of matplotlib via pip or it was installed when I used pip to upgrade IPython.

2

u/rlabbe Feb 28 '15

Perhaps this is the wrong place to ask, but what is the migration strategy for users of IPython notebook (now Jupyter)? For example, is nbviewer going to support both versions for the foreseeable future? Do I need to get my users to upgrade to 3.0? Are there more breaking changes coming soon? If I upgrade my notebooks to the new format, are my users going to be faced with compatibility issues with other aspects of IPython 3.0? I'm excited for the changes, but don't want to introduce a lot of churn or difficulties for the users of my notebooks.

2

u/takluyver Feb 28 '15

There's really two questions here:

  • Incompatibilities between IPython 2 and 3: we changed the notebook format and the messaging protocol it uses to talk to kernels. But it can adapt to the previous version of both, so users who upgrade shouldn't see anything break. Users with IPython 2.4 can open notebooks from IPython 3. Older versions of IPython can't open the new notebooks, but you can downgrade them using nbconvert (in IPython 3): ipython nbconvert --to notebook --nbformat 3 mynotebook.ipynb.

  • Breaking changes from the IPython/Jupyter split: Separating the repo into several smaller pieces is the big goal for version 4.0. We'll try to keep things as stable as possible in the user experience.

1

u/rlabbe Feb 28 '15

Thank you. I am getting different behavior with nbconvert in 3.0 vs 2.4; I will submit an issue on github.

2

u/mtelesha Feb 28 '15

Nothing is going to break with iPython to Jupyter. It just means that Jupyter will be kernel agnostic.

1

u/lefuet Feb 28 '15

yeah, I was so looking forward to this day! :)