syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.56k stars 4.9k forks source link

New function "spacemacs/python-shell-send-block" to send block #16408

Closed sunlin7 closed 1 month ago

sunlin7 commented 1 month ago

Hi,

A new function spacemacs/python-shell-send to send a block to python interpreter.

if condition:
  print("hello")
  print("world")

Function spacemacs/python-shell-send can send the block without/with block-header.

For the key binding, choose the key binding M-m s k for the b/B already ocupied.