Pycharm - Waiting for REPL response when python console using IPython

大憨熊 提交于 2020-05-26 10:27:20

问题


Response times in a PyCharm Python Console are unbearably slow when the console is configured to use IPython. This wasn't the case in a previous installation. When the Python Console is not configured to use IPython, and uses IDLE, it performs normally.

The poor response time seems to be linked to the REPL response function, as depicted in the image below. When the REPL response dialog completes, a background process continues to run for several minutes.

Since this was not a problem in a previous installation, the issue must be a result of a configuration change. However, the only thing I changed was to utilize a Conda env instead of a virtualenv.

Any ideas?


回答1:


This issue was reported to JetBrains. The issue was duplicated and identified as a bug. The status of the issue can be viewed at:

https://youtrack.jetbrains.com/issue/PY-24880




回答2:


Here is how to apply the "answer" found in the JetBrains bug filed by @vlmercado https://youtrack.jetbrains.com/issue/PY-24880:

Disable auto popup completions (in Editor->General->Code Completions)




回答3:


Today I had the same problem in Pycharm2019.3 with Python3.8. It may have been caused by using miniconda instead of the full anaconda installation, because after installing the ipython package (with -conda install ipython) the long REPL waiting times have dissappeared.




回答4:


I am not sure if it is solved by jetbrains, for me, it just randomly starts even after 1-2 hrs of coding, I have tried every options found in Jet brains as well as Stack Overflow like checking and unchecking of 1,2 in combination as shown in image. Have experienced same with the code completion option as well,

These options might help:

Settings: File > Settings > Build, Execution, Deployment > Console

Ipython Setting option:
Run with Console option:



来源:https://stackoverflow.com/questions/44738392/pycharm-waiting-for-repl-response-when-python-console-using-ipython

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!