[IPython-User] Ipython notebook error : websocket closed

Abhishek Pratap apratap@lbl....
Tue Mar 20 15:57:11 CDT 2012


on a normal ipython shell it works fine.

ipython --pylab
plot(range(50))
Out[1]: [<matplotlib.lines.Line2D at 0x23a9710>]

works fine. I see a plot in a new window

-A

On Tue, Mar 20, 2012 at 1:54 PM, Brian Granger <ellisonbg@gmail.com> wrote:
> Hi,
>
> This looks like a problem with you matplotlib install.  Have you tried
> to make a plot outside the notebook?  If that doesn't work, I would
> bring up the issue on the matplotlib list and try to debug the
> install.
>
> Brian
>
> On Tue, Mar 20, 2012 at 1:39 PM, Abhishek Pratap <apratap@lbl.gov> wrote:
>> So this problem goes away on latest version of firefox.
>>
>> However I get another error mainly unable to do inline plots.  Is this
>> library required ?
>>
>>
>> -Abhi
>>
>> CMD: ipython notebook --pylab=inline
>>
>> Error:
>>
>>  File "/house/homedirs/a/apratap/.local/lib/python2.7/site-packages/IPython/zmq/ipkernel.py",
>> line 595, in init_kernel
>>    shell.enable_pylab(gui, import_all=self.pylab_import_all)
>>  File "/house/homedirs/a/apratap/.local/lib/python2.7/site-packages/IPython/core/interactiveshell.py",
>> line 2607, in enable_pylab
>>    gui = pylab_activate(ns, gui, import_all, self)
>>  File "/house/homedirs/a/apratap/.local/lib/python2.7/site-packages/IPython/core/pylabtools.py",
>> line 330, in pylab_activate
>>    activate_matplotlib(backend)
>>  File "/house/homedirs/a/apratap/.local/lib/python2.7/site-packages/IPython/core/pylabtools.py",
>> line 223, in activate_matplotlib
>>    import matplotlib.pylab as pylab
>>  File "/jgi/tools/misc_software/python/2.7/lib/python2.7/site-packages/matplotlib/pylab.py",
>> line 221, in <module>
>>    from matplotlib import mpl  # pulls in most modules
>>  File "/jgi/tools/misc_software/python/2.7/lib/python2.7/site-packages/matplotlib/mpl.py",
>> line 2, in <module>
>>    from matplotlib import axis
>>  File "/jgi/tools/misc_software/python/2.7/lib/python2.7/site-packages/matplotlib/axis.py",
>> line 10, in <module>
>>    import matplotlib.font_manager as font_manager
>>  File "/jgi/tools/misc_software/python/2.7/lib/python2.7/site-packages/matplotlib/font_manager.py",
>> line 52, in <module>
>>    from matplotlib import ft2font
>> ImportError: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not
>> found (required by
>> /jgi/tools/misc_software/python/2.7/lib/python2.7/site-packages/matplotlib/ft2font.so)
>>
>>
>>
>>
>> On Tue, Mar 13, 2012 at 11:59 PM, Fernando Perez <fperez.net@gmail.com> wrote:
>>> On Tue, Mar 13, 2012 at 5:45 PM, Thomas Kluyver <takowl@gmail.com> wrote:
>>>>
>>>> That should be OK. Do you see any errors at the terminal where you started
>>>> the notebook?
>>>
>>> Mmh, I don't recall the whole combination of websocket protocol
>>> changes, tornado and  browser version numbers, but it's possible this
>>> might be an issue.  Can the OP test with a newer chrome or firefox?
>>>
>>> Cheers,
>>>
>>> f
>>> _______________________________________________
>>> IPython-User mailing list
>>> IPython-User@scipy.org
>>> http://mail.scipy.org/mailman/listinfo/ipython-user
>> _______________________________________________
>> IPython-User mailing list
>> IPython-User@scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-user
>
>
>
> --
> Brian E. Granger
> Cal Poly State University, San Luis Obispo
> bgranger@calpoly.edu and ellisonbg@gmail.com
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user


More information about the IPython-User mailing list