[Mesa-users] Error in opening %pylab

Evan Bauer evan.bauer.astro at gmail.com
Fri Nov 6 12:05:51 EST 2020


Hi Gabriel,

I would recommend running ipython outside the Docker container if you want to use things like pylab. That will require installing python, ipython, etc on your windows machine if you haven't already. Remember, you can still access your MESA output from outside the container as long as it is in the docker_work directory.

Cheers,
Evan

> On Nov 6, 2020, at 10:59 AM, Gabriel Oksa <Gabriel.Oksa at savba.sk> wrote:
> 
> 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
> 
> 
> 
> _______________________________________________
> mesa-users at lists.mesastar.org
> https://lists.mesastar.org/mailman/listinfo/mesa-users
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20201106/8d11c806/attachment.htm>


More information about the Mesa-users mailing list