Elpy: ipython not found

Created on 30 May 2016  路  3Comments  路  Source: jorgenschaefer/elpy

I have anaconda's python distribution installed on my system. I can access the ipython console from my terminal, howevere, (elpy-use-ipython) raises an error.

elpy-use-ipython: Command "ipython" not found

Do you have any ideas what I am missing?

EDIT:

I am working on OSX with python 2.7 with anaconda installed in ~/anaconda

Question

Most helpful comment

For anyone who stumbles on to this thread:

I have in my ~/.bash_profile

export PATH="/Applications/anaconda/bin:$PATH"

and in my ~/.emacs.d/init.el

(package-initialize)
(exec-path-from-shell-copy-env "PATH")
(elpy-enable)
(elpy-use-ipython)

All 3 comments

Hello! I suspect your ipython is only available in the shell, and not in your global environment (OS X makes a difference there), so you have to set your PATH accordingly. See e.g. https://stackoverflow.com/questions/16676826/making-the-path-and-other-environment-variables-available-in-emacs

Does that help?

Thanks! yeah it was a problem with my $PATH variable not being read by emacs. exec-path-from-shell emacs package helped with that.

For anyone who stumbles on to this thread:

I have in my ~/.bash_profile

export PATH="/Applications/anaconda/bin:$PATH"

and in my ~/.emacs.d/init.el

(package-initialize)
(exec-path-from-shell-copy-env "PATH")
(elpy-enable)
(elpy-use-ipython)
Was this page helpful?
0 / 5 - 0 ratings