Does Pycharm have Interactive Python Interpreter?

∥☆過路亽.° 提交于 2019-11-28 04:55:46

I'm using Pycharm community edition version 2016.1.2 I do the following to get an interactive prompt when debugging

  1. Debug a file (put a breakpoint somewhere you want to work with)
  2. In the debug window, there should be a 'Console' tab, select it
  3. On the left tool bar of the console, there is a button 2nd from bottom "Show Python Prompt". Press it
  4. You should now see an intereractive prompt you can use inside the console (allowing you to interact with the running code)

As mentioned in the OP, to just get an interactive python prompt outside a running script, in the main menu bar select Tools->Python Console

Magically this will appear:

You can set the PyCharm then it runs the same as PyScripter.

Run --> Edit Configurations --> Select "Show command line afterwards".

Yes.

To launch an interactive console

    On the main menu, choose Tools | Run Python console, or Tools | Run Django console

Running Console

Run->Edit Configurations->Interpreter Options-> add -i

There will be a red prompt when your run is finished.

Choose Run, Edit Configurations, check "Show command line afterwards". It doesn't work after an exception is raised, however.

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