I'm running IPython in an emacs shell using:
;; Set IPython interpreter in my init.el
(defvar python-shell-interpreter "ipython")
(defvar python-shell-interpreter-args "-i")
Then:
- Start IPython with
M-x run-python
- Run a program within IPython with
%run myprog.py
. myprog.py imports a module calledmymodule
.
I make changes to mymodule
but when I run %run myprog.py
again, it runs the original mymodule
, not the changed code.
FWIW, I'm using emacs 24.5 prelude, on Windows 10 with Anaconda and Python 3.5.