When I run code from a buffer in python-mode
for it to evaluate in a dedicated inferior ipython process emacs freezes. It freezes if, while the code is evaluating, I try to edit the buffer from which I sent the code. I am unable to move the point, am unable to change buffers, am unable to type, and the time in the mode-line does not update.
What can I do to stop this from happening? Could it be related to the settings of my python-shell-interpreter?
Here is my python init
(use-package python
:mode ("\\.py\\'" . python-mode)
:interpreter ("ipython" . python-mode)
:demand
:config
(setq python-shell-interpreter "ipython"
python-shell-interpreter-args "-i"))
Thank you!
GNU Emacs 25.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.28) of 2016-01-04
. I feel like it should work as is. I've seen people mention adding --pylab as an argumentuse-package
but I don't use it for loading python, given that the mode is a builtin it will be initialized automatically when I open a.py
file or buffer. So in my config to use ipython I just do the following:(setq python-shell-interpreter "ipython")
assuming that your path is setup correctly, this just works for me in emacs 25.1