Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pycharm - Waiting for REPL response when python console using IPython

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?

Python Console

like image 489
vlmercado Avatar asked Jun 24 '17 16:06

vlmercado


People also ask

Why does PyCharm take so long to respond?

Bookmark this question. Show activity on this post. 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.

How do I run IPython in PyCharm?

IPython is available on your computer with Anaconda. The corresponding Conda environment is set as the default interpreter for the current project. Once you set a Conda environment as a Python interpreter, PyCharm automatically recognizes IPython, and changes the prompt of the Python console. From the main menu, select Tools | Python Console.

Why does the Python REPL take so long to respond?

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.

How do I open the console in PyCharm?

You can assign a shortcut to open Python console: press Ctrl+Alt+S, navigate to Keymap, specify a shortcut for Main menu | Tools | Python or Debug Console. The main reason for using the Python console within PyCharm is to benefit from the main IDE features, such as code completion, code analysis, and quick fixes.


2 Answers

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

like image 135
vlmercado Avatar answered Oct 12 '22 15:10

vlmercado


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)

enter image description here

like image 22
WestCoastProjects Avatar answered Oct 12 '22 15:10

WestCoastProjects