0
votes

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?

1

1 Answers

2
votes

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.