While developing, I frequently need to reload modules and submodules, so I have the following function to restart the python process:
(defun elpy-shell-restart-and-send-region-or-buffer (arg)
"Send the region of buffer after restarting the shell."
(interactive "P")
(elpy-shell-kill t)
(elpy-shell-send-region-or-buffer arg))
However, that allways starts a new window for the new process, which becomes quite messy over time.
settting
does not help either. And yes, I am aware that ipython has reload magic, but last time I checked, the ipython output had no way of linking error messages back into the source code. Which is alo quite handy to have.
While developing, I frequently need to reload modules and submodules, so I have the following function to restart the python process:
However, that allways starts a new window for the new process, which becomes quite messy over time. settting
does not help either. And yes, I am aware that ipython has reload magic, but last time I checked, the ipython output had no way of linking error messages back into the source code. Which is alo quite handy to have.