rpicatoste
rpicatoste

Reputation: 529

Pycharm - Run code selected in running ipython console

In Pycharm, you can have a running iPython console after running your script with the "Show command line afterwards" option.

It is also possible to run the code selected with ALT + SHIFT + E.

But it runs the code in the Python console of Pycharm, not in the iPython console opened when running a script as described above.

Is it possible to run pieces of code likewise in that console were your script was run?

Upvotes: 0

Views: 1232

Answers (1)

Mariy
Mariy

Reputation: 5914

You have to set the project interpreter to IPython. Then when you execute it with Alt + Shift + E it will run it in IPython.

You can view how to set up an interpreter here.

Upvotes: 2

Related Questions