You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not by default, but you can redefine elpy-shell-send-region-or-buffer and simply omit the last line:
(defunelpy-shell-send-region-or-buffer (&optional arg)
"Send the active region or the buffer to the Python shell. If there is an active region, send that. Otherwise, send the whole buffer. Without prefix argument, this will escape the Python idiom of if __name__ == '__main__' to be false to avoid accidental execution of code. With prefix argument, this code is executed."
(interactive "P")
;; Ensure process exists
(elpy-shell-get-or-create-process)
(if (region-active-p)
(python-shell-send-region (region-beginning)
(region-end))
(python-shell-send-buffer arg)))
C-c C-c
executes code buffer but moves cursor to IPython buffer. Is there a way to keep the cursor in the code buffer?The text was updated successfully, but these errors were encountered: