I'm using Pycharm's Python console interface to execute code from my plugin.
PyExecuteInConsole.executeCodeInConsole(prj, code, null, true, true, false, null);
Declaration in com.jetbrains.python.actions.PyExecuteInConsole.kt :
How do I wait until the command is executed and the python console is idle again? The problem is, if I send another command with this function too soon - while the Python console is still busy with the previous command, the command is not executed, and I have to press ENTER in the console to run it.