'Disable IPython console in PyCharm
I use the PyCharm community edition and also IPython. PyCharm automatically recognizes IPython and sets it as the default console (PyCharm webhelp link), so when in debugging mode, it accepts to runs IPython magic commands, like list?
or ls
or %timeit
.
It is very nice, but I would like to use the plain old python console. Is there a simple way to do that? Note that I do not want to uninstall IPython (which obviously solves my problem) nor do I want to set up a virtualenv.
I use Python 3.3.2, but the problem is the same with 2.7.
Solution 1:[1]
Go in File --> Default Settings
, click console
, Uncheck Use IPython, if available
then go in File --> Settings
, uncheck Use IPython, if available
Default Settings
and Settings
are two different options in File
menu so make sure to follow both
i am using PyCharm version 3.4 and after doing both the above processes i do not get IPython Console.
Solution 2:[2]
I am using PyCharm Community Edition 2017.1.3 on CentOS 7.2. To disable the use of Ipython for current project. Go to File-->Settings-->Build, Execution, Deployment-->Console
, uncheck the box Use Ipython if available.
Then close the current python console window and open it again or Rerun it. You should see that plain python is used. In my case, there is no need to restart Pycharm for this change to take effect.
Also, if you want to use Ipython instead of plain Python, do the opposite.
Solution 3:[3]
To give a more up-to-date answer, I am running Pycharm 2021.1.3.
To disable iPython for all future projects:
File --> New Projects Settings --> Settings for New Projects...
--> Build, Execution, Deployment
click Console
, Uncheck Use IPython if available
To disable for your the current project:
File --> Settings
--> Build, Execution, Deployment
click Console
, Uncheck Use IPython if available
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Prashant Shrivastava |
Solution 2 | jdhao |
Solution 3 | Kunal Shah |