Code in python console not executing

Hi,

When I type a python command in the python debug console, when I press Enter I expect the code to execute, instead - it adds a new line in the console.

Note that when I use the keyboard shortcut for "Execute Selection in Python Console" the code is executed as expected. The issue occurs only when attempting to type directly in the console and executing by pressing Enter.

Tried also Shift + Enter (which was used to add a new line in the console in previous versions), Alt + Enter and Ctrl+ Enter but to no avail.

 

Another thing that seems to be related - in the python console the up / down buttons does not bring up the history of the console.

Is this a bug, or am I missing something?

 

Extra info:

PyCharm 2021.1.3

Windows 10 (tried on 2 computers - got same results)

 

 
0
2 comments

Hello, 

 

It looks like the following bug https://youtrack.jetbrains.com/issue/PY-49527, The workaround is not to use the floating mode.

I apologize for the inconvenience. 

The fix will be available soon. 

 

1

When I configure a pure python project I get the option to set execution path in python console.
When I configure a python project with 'pytest' I don't get the option to chose output to python  console. There is a python console when I am running under debugger. But it does not sync with the executing python code. I can try to attach to the debugger, but doing so just kills everything and program hangs. What is the python console for, when I am running with pytest?
 

0

Please sign in to leave a comment.