PyCharm (4.5.4) starts console running iPython

Running Python 2.7.10_2, installed via Homebrew on OSX 10.9, with iPython installed via PIP.

The setup was running fine (with Python path set to Homebrew installation in Usr/local/bin until I installed iPython via PIP. Now when starting the console in PyCharm is loads Python then load iPython giving me it's command line. It does not do this when starting Python from the Terminal, rather, it just loads Python.

I can not figure out how to get the console to just load python without then loading iPython. Any help or suggestions would be greatly appreciated.

Cheers,
Jason
3 comments
Comment actions Permalink
Here's what the differences in the console output look like:
0
Comment actions Permalink
I resolved the issue (probably less than ideally) by commenting out the following lines in /Applications/PyCharm CE.app/Contents/helpers/pydev/pydevconsole.py

if 'IPYTHONENABLE' in os.environ:
    IPYTHON = os.environ['IPYTHONENABLE'] == 'True'
else:
    IPYTHON = True

try:
    try:
        exitfunc = sys.exitfunc
    except AttributeError:
        exitfunc = None

    if IPYTHON:
        from pydev_ipython_console import InterpreterInterface
        if exitfunc is not None:
            #sys.exitfunc = exitfunc
        else:
            try:
delattr(sys, 'exitfunc')
            except:
pass
except:
    IPYTHON = False
    pass
0
Comment actions Permalink
Or you could just deselect the Use iPython if available option in Preferences>Build, Execution, Deployment>Console
0

Please sign in to leave a comment.