[Mesa-users] Error in opening %pylab
Wolf, William M
WOLFWM at uwec.edu
Fri Nov 6 11:38:41 EST 2020
Hi Gabriel,
This sounds like more of an issue with your python distribution than a mesa issue, so I don’t think we can diagnose this issue.
That being said, you could also just do something like
from matplotlib.pyplot import *
Which will fill up your namespace with everything in the pyplot submodule, but that’s more or less what pylab does anyway.
Regards,
Bill Wolf
On November 6, 2020 at 10:00:21 AM, Gabriel Oksa (gabriel.oksa at savba.sk<mailto: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://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.mesastar.org%2Fmailman%2Flistinfo%2Fmesa-users&data=04%7C01%7Cwolfwm%40uwec.edu%7Ca56f96cc36e7471bd8b808d8826d0dda%7Cdd068b97759349388b3214faef2af1d8%7C0%7C1%7C637402752201352571%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Dmx5FtYdGzXNNjMaBjb9dmZ60GBWf2UXVWMvH2zwYq0%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20201106/1493dd8d/attachment.htm>
More information about the Mesa-users
mailing list