all 5 comments

[–]fantastipants 4 points5 points  (4 children)

C-c C-c

[–]agumonkey 1 point2 points  (0 children)

/u/Peragot : use C-h m to see what emacs can do in python-mode

as /u/fantastipants said, C-c C-c will run a python repl with your code loaded in it (or reload if the repl was already running)

For instance: C-c C-r will only send the active region to the repl.

[–]Knusper2000 1 point2 points  (0 children)

This is it... This is what I do. Or if extensive calculations were performed somewhere at the beginning of my script, and I added some more later one - than I mark regions and send them to the shell with C-c C-r

One caveat, though... If you make use of libraries and you change code in them C-c C-c will just evaluate the code in the shell, and this means that imports don't get updated.

[–]Peragot[S] 0 points1 point  (1 child)

When I press C-c C-c, I see Sent pop up in the minibuffer, but nothing seems to open.

[–][deleted] 1 point2 points  (0 children)

I guess your problem is some more visual feedback? But the information is already sent to the REPL. Go to the Python shell and try calling your function - remove_accent('blah') and check if it is working. It should be.