I'm looking to be able to do the same thing as ESS
but for python, ie to be able to have two windows side by side one with python shell and the other with text file and send current line or block pressing C-enter or C-p. So I tried to install (python-x)
but I don't seem to be able to do that, I tried to install (eval-in-repl)
(all this through the MELPA system) but none of it seems to work as when I select python-mode or python-activate
nothing happens, and when I open M-x shell
then split windows with a python file C-ret
isn't binded. Me adding (python-x-setup)
in my .spacemacs
raise an error at the start.
Any idea how I am supposed to install and setup a package so I can send lines to python shell (or any shell in general) ? I got spacemacs based on emacs 25.1.1
I can run run-python
however it opens a shell but how do I get to feed it from a persistent text file ?
C-c C-p
open a python shell in.py
file and thenC-c C-c
python-shell-send-buffer
orC-c C-r
python-shell-send-region
work?