Skip to content
Advertisement

Cannot connect to localhost:63342 when using matplotlib in PyCharm’s Python scientific plotting

My PyCharm’s scientific plotting mode doesn’t work on localhost (not remote). It reports:

JavaScript

My matplotlib with the show plots in tool window in Tools -> Python Scientific unchecked (plot in original window instead of in SciView) worked normally.

Changing a few options such as debugging server’s port and python’s interpreter (anaconda3 (Python 3.7) and pure version of Python 3.8.3) does not help. I’ve also reinitialized a project, reinstalled PyCharm, reboot a couple of times, and reset all the settings in PyCharm, but the error still occurs.

I suppose that there is something wrong with my network configuration, but I do not know how to do.

System: macOS 10.15.3 (Hackintosh)

Advertisement

Answer

This is probably caused by the HTTP proxy. Please check and delete if you have set the http_proxy in the environment variable.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement