ipython notebook 0.12.1 and 0.13.1 compatibility - ipython

I created an ipython notebook with version 0.13.1 of ipython on fedora that works fine. When I try to read it on ipython 0.12.1 on opensuse I obtain a void white notebook. Is there a known problem on backward compatibility?
Both versions of ipython and friend modules run ok on each machine.
Thanks

IPython notebook versions are not backward compatible. IPython 0.13.1 supports nbformat 3, while 0.12 only supports nbformat 2. Here is a script you can use to downgrade v3 notebooks to v2. In future versions (0.13 included), you will get a better message when you try to open an unreadable notebook.

Related

jupyter console and ipython

In my conda environment, I installed both jupyter and ipython. The result for conda list jupyter and conda list ipython are as follows:
jupyter_client 5.1.0 py35_0 defaults
jupyter_console 5.2.0 py35_0 defaults
jupyter_contrib_core 0.3.3 py35_0 conda-forge
jupyter_contrib_nbextensions 0.3.1 py35_0 conda-forge
jupyter_core 4.3.0 py35_0 defaults
ipython 6.1.0 py35_0 defaults
ipython_genutils 0.1.0 py35_0 defaults
From web I found that jupyter uses ipython kernel. Does not this mean that the jupyter console and ipython installed should be the same thing and should be configured at the same place?
I feel them are two completely independent things and one to be configured in .jupyter and one to be configured in .ipython.
Do I need to abandon ipython completely and use jupyter only?
One more question: to config ipython's editor, I use the EDITOR environment variable and it is easy. To config jupyter console's editor, the doc says
%edit runs an external text editor. You will need to set the command
for this editor via the ``TerminalInteractiveShell.editor`` option in
your configuration file before it will work.
But where to set it? When I search the internet, all results point to ipython like this one. Its really confusion.

Troubleshooting: Kernel always dies using IJulia in IPython notebook

I recently began using julia, and I would like to use in with IPython Notebook/Jupyter.
So, I installed julia using MacPorts, i.e. sudo port install julia. Following the installation instructions here: https://github.com/JuliaLang/IJulia.jl
After the prompt, I used "Pkg.add("IJulia") to install IJulia.
However, I cannot use Julia with IPython notebook. After opening the notebook with
ipython notebook --profile=julia
the kernel for the julia notebook dies instantly and cannot be restarted.
The error on the Terminal shows:
[I 19:03:19.410 NotebookApp] KernelRestarter: restarting kernel (1/5)
WARNING:root:kernel dc00ae3a-8fa6-4d01-a802-f7845a16a9ba restarted
ERROR: SHA256 not defined
in include at /opt/local/lib/julia/sys.dylib
in process_options at /opt/local/lib/julia/sys.dylib
in _start at /opt/local/lib/julia/sys.dylib
while loading /Users/NAME/.julia/v0.3/IJulia/src/kernel.jl, in expression starting on line 6
I suspect I have installed IJulia incorrectly? How can I solve this?
(The version of julia is julia version 0.3.11. The version of python is Python 2.7.10. The version of ipython is 4.0.0.)
The current stable version of Julia is v0.4.0.
You should download it directly from the Julia homepage (.dmg):
http://julialang.org/downloads/
Having done that, run it and do Pkg.add("IJulia") again.
Then from within Julia do
using IJulia
notebook()
Note that the Jupyter Notebook (the new name for what used to be the IPython Notebook) is run as
jupyter notebook
The --profile julia is no longer necessary and should be removed.
Furthermore, this (jupyter notebook) will only work if you had a previous installation of Jupyter, which seems to be the case. In this case, I suggest you upgrade it with conda, if you installed Anaconda, or with pip.)

Unreadable Notebook - Unsupported nbformat version 4 on windows

I finally was able to install ipython on my Windows 7 PC and it runs without any errors. The problem is that I used to code in ipython but in MAC. Now that I am trying to upload my previous notebooks I receive the following error:
Unreadable Notebook: MyFile.ipynb Unsupported nbformat version 4
I found this answer for my question but unfortunately that is not for windows and did not resolve my problem. It is worth to mention:
ipython --version
produces:
2.3.1
Any help or comment on this is much appreciated.
Thanks
It took me a while to figure this out but I got the first lead from user "cel". I used to have multiple versions of python (2.7 and 3.4). I removed python 3.4 because it's not compatible with spark yet. Next, I had to remove WinPython3.4 and replace it with WinPython2.7 so it can integrate with python 2.7 installed on my PC. Finally, I installed python 2.7.9 and set the C:/Python27/Script as a part of system environment variable. After doing all this I ran the following commands:
pip uninstall ipython
This helped me to remove older version of ipython. Then:
pip install ipython
This installed the latest version of ipython on my windows pc. Finally:
pip install notebook --upgrade
To upgrade notebook to latest version. Right now, ipython os installed and and should work fine doing this:
ipython notebook
Had no problem importing my previous .ipynb after all of the above.
Good luck to you all.
I have the same problem on Linux. Simply doing:
sudo pip install notebook --upgrade
worked for me. I have python 3.4 and 2.7 and unlike the answer by nimafl, there was no need for me to remove one them or to first uninstall ipython. A simple upgrade did the trick. Now instead of version 2.3.1 I have version 4.0.3 of ipython.

Using ipython nbconvert with Enthought Canopy

I am using Enthought/Canopy (version 1.1.0.1371) and would like to use nbconvert to convert ipython notebooks to other formats. nbconvert has now been incorporated into ipython and is not available outside of ipython. However, it is apparently not available within the Canopy distribution. Any suggestions?
I believe it is available in the current version of canopy.
You can always install canopy package the old fashioned way with setup.py, just make sure you call Canopy's python. That way, you don't have to always wait for the package manager to incorporate changes to repos.
If canopy's python is your system python, merely python setup.py install should work. If you have multiple python paths, find Canopy's python; on my Ubuntu system it's:
~/Enthought/Canopy_64bit/User/bin/python
So I would just do:
~/Enthought/Canopy_64bit/User/bin/python setup.py install
1) Use the Canopy Package manager to update IPython to version 1.0
2) Open a Canopy User Python shell / terminal / command prompt. If you did not make Canopy your default Python, be sure to see this article: https://support.enthought.com/entries/23646538-Make-Canopy-User-Python-be-your-default-Python
3) ipython nbconvert ....
4) http://knowyourmeme.com/memes/profit

canopy ipython notebook blank

I just installed canopy 1.0.0.1160 under OS 10.8.3
I can run ipython fine from the shell
Python 2.7.3 | 64-bit | (default, Mar 25 2013, 15:52:02)
Type "copyright", "credits" or "license" for more information.
IPython 1.0.dev -- An enhanced Interactive Python.
However, when I run try to start an ipython notebook
ipython notebook --pylab=inline
it sometimes works in safari, not in chrome. And I can't run my old ipython notebooks created under EPD 7.3
Can I suspect that this is an ipython bug (I only found a youtube video with somebody having very similar issues? Are there any workarounds? Or should I wait for a new ipython build/canopy release?