Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
May 23, 2024

Conversation

sunlin7
Copy link
Contributor

@sunlin7 sunlin7 commented May 20, 2024

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.

* layers/+lang/python/funcs.el:
  New function "spacemacs/python-shell-send-block" and
  "spacemacs/python-shell-send-block-switch".
* layers/+lang/python/packages.el: Binding new functions to keys
@smile13241324 smile13241324 merged commit 4cbf9e1 into syl20bnr:develop May 23, 2024
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants