Open marty0801 opened 6 years ago
Solved by specifying in init.el explicit location of ipython within the virtualenv:
(setq python-shell-interpreter "/home/marty/proj/geo3/bin/ipython3"
;; python-shell-interpreter-args "-i --simple-prompt")
)
But is there a less hacky way to do this?
It may be a bug in python-mode.
Does it work when disabling elpy-mode (M-x elpy-mode
) and trying to send a something to the python shell (M-x python-shell-send-string
then print('ok')
) ?
elpy-config gives
As you see, ipython is installed only in the virtualenv. The version is 4.2.1.
My workflow is as follows:
pyenv-activate
to set up the virtualenvelpy-set-project-root
to /home//marty/proj/geo3/geo As prescribed in the 'read-the-docs' page I inserted in to my .emacs.d/init.el:Now C-c C-c returns
Python Process not running
in the message strip at the bottom of emacs. When I comment out these two lines in init.el and executeC-c C-c
, it sends the current buffer to the RPC python instance.Here is a more verbose excerpt of the Messages buffer: