Sublime Forum

SublimeREPL is not finding the adequate IPython installation

#1

Hi All

I started coding with sublime (Sublime Text 3) very recently, and I learned about sublimeREPL. I decided to install it but for some reason is not properly working, and has become “frustrating”.

This is the situation: the only packages I have installed are Package-Control, Anaconda, SublimeREPL and Python-Autocomplete.

When I use sublimeREPL to start a python console (Tools > SublimeREPL > Python > Python), I obtain the following message:

Python 2.7.10 |Continuum Analytics, Inc.| (default, May 28 2015, 17:04:42) 
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org

and everything works fine, including autocompletion, which is an important feature when coding.

However, when I follow the same process but initialising IPython (i.e: Tools > SublimeREPL > Python > IPython), there is no loading message, just:

IPython Console 3.2.0

In [1]:

when I would expect to see the same as in the terminal:

Python 2.7.10 |Continuum Analytics, Inc.| (default, May 28 2015, 17:04:42)
Type "copyright", "credits" or "license" for more information.

IPython 3.2.0 -- An enhanced Interactive Python.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

and moreover, autocompletion won’t work at all. I have tried many approaches like editing the SublimeREPL > Setting Users, so it points towards my conda installatio:

{ "default_extend_env": {"PATH": "/anaconda/bin/python:{PATH}"} }

But this does not work. Basically, SublimeREPL does not seem to load the correct IPython configuration

At this stage, I am “a little desperate” and about to move back to emacs.
However, I really like Sublime for the time I have been using it and I would really like to keep using it in an integrated environment, where I can send code to IPython and IPython works similarly than in the terminal. By the way, I read here https://github.com/wuub/SublimeREPL/issues/417 that this might be an IPython version issue and that a potential solution is to downgrade IPython, but I hope there is a better solution than that.

Anyway, thanks in advance for your time

0 Likes

#2

The path in your SublieREPL user setting doesn’t contain your home directory.

Try this:

 "default_extend_env": {"PATH": "{HOME}/anaconda/bin/:{PATH}"}
0 Likes