简体   繁体   中英

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.

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.

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.

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

In my case I had uncheck from

Run --> Edit Configuration --> Uncheck "Run with Python Console

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM