Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Pycharm have Interactive Python Interpreter?

I am a fairly new Pycharm user switched from other IDEs recently.

One question I have is about the interactive python interpreter, which is the "window" I can type in variables to check them after I ran my script. Pyscripter has this thing called "Python interpreter" and I know Pycharm also has.

I tried "Python Console" under "Tools", but I don't think it's the same thing. So I am wondering how I can find this Python Interpreter in Pycharm? I am using Community version 3.

like image 693
Nan An Avatar asked Oct 31 '13 14:10

Nan An


People also ask

Does PyCharm have an interactive mode?

PyCharm supports interactive widgets that provide integration between Python code running in the notebook kernel and JavaScript running in the browser.

Does PyCharm include Python interpreter?

Python interpreters in PyCharmYou can use a system interpreter that is available with your Python installation. You can also create a Virtualenv, Pipenv, Poetry, or Conda virtual environment. A virtual environment consists of a base interpreter and installed packages.


1 Answers

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)

enter image description here

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

enter image description here

Magically this will appear:

enter image description here

like image 200
Ray Avatar answered Sep 23 '22 21:09

Ray