I wanted to use ipython
as default console in Pycharm
but it doesn't work.
I have selected use ipython
when available in the console option available under Build,Deployment and Execution in Settings. Did the same in Default Settings also. But it doesn't seem to work.
I am using Python 3.6.3
, IPython 6.2.1
and PyCharm Professional 2017.3
Use the magic commands of IPythonFrom the main menu, select Tools | Python Console. If IPython has been properly installed, PyCharm will report about the version used.
In the Settings/Preferences dialog ( Ctrl+Alt+S ), select Build, Execution, Deployment | Console | Python Console. Select any available interpreter from the Python interpreter list.
The IPython Console allows you to execute commands and interact with data inside IPython interpreters. To launch a new IPython instance, go to New console (default settings) under the Consoles menu, or use the keyboard shortcut Ctrl - T ( Cmd - T on macOS) when the console is focused.
PyCharm enables you to use interactive consoles, thus making it possible to stay within the IDE, without the necessity to switch to the shell.
This is probably because IPython is not recognized as a package in your project interpreter.
This usually happens when you configure a virtualenv
for your project, but don't check the Inherit global site-packages
checkbox.
Fixing is quite easy:
Go to Settings -> Project: <project name> -> Project interpreter
At the bottom of the packages list you should see a +
sign.
Press that button, find ipython
and install it.
On the next time you'll open your console, IPython will be detected and used automatically.
You have not installed IPython package.
Do this:
File → Settings... → Project your_project → Python Interpreter
then click the + button on the right-hand vertical toolbar (see the red arrow in the picture):
and from the new popup window select and install ipython
package:
Finally, restart your Python Console.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With