[Mesa-users] Error in opening %pylab

Gabriel Oksa Gabriel.Oksa at savba.sk
Fri Nov 6 10:59:59 EST 2020


Good evening, 
I have installed MESA under Windows 10 and is computes and I have some outputs. Now I want to plot some results. I start ipython and try to start %pylab, but here is something wrong, which I do not understand. I get the error message at the end:


docker at 06ecabc48a84:~/docker_work/test1$ ipython
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
Type "copyright", "credits" or "license" for more information.

IPython 2.4.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: %pylab
connect localhost port 6000: Connection refused
connect localhost port 6000: Connection refused
---------------------------------------------------------------------------
TclError                                  Traceback (most recent call last)
<ipython-input-1-4ab7ec3413a5> in <module>()
----> 1 get_ipython().magic('pylab')

/usr/lib/python3/dist-packages/IPython/core/interactiveshell.py in magic(self, arg_s)
   2203         magic_name, _, magic_arg_s = arg_s.partition(' ')
   2204         magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2205         return self.run_line_magic(magic_name, magic_arg_s)
   2206
   2207     #-------------------------------------------------------------------------




and more errors .... It seems like my computer tries to get %pylab from some other device.   Please, can anybody tell me what is wrong? I have also installed Matplotlib and mesa_reader is working under ipython perfectly. However, without %pylab the command "plot" is not recognized.

Thank you in advance for your help.

Best regards,

Gabriel





More information about the Mesa-users mailing list