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

feat: core.send_code_block #391

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

frere-jacques
Copy link

Editors like vscode or pycharm or tools like jupyter notebooks let you send code blocks devided by a delimiter, eg. in python '#%%' or '# %%' to the repl.

The plugin jupytext is also to mention here, as it creates a .py representation of jupyter notebooks, in which in case of the py:percent style, the code blocks are delimited with '# %%'.

I wrote this feature which lets you define multiple code_deviders in the repl_definition and let you send the lines between those to the repl. Optionally one can choose to move the cursor to the next block in order to iterate easily through the file.

I also updated the doc and the readme to reflect for the changes and included two commands to the core.named_maps.

I hope you like, what I did here, and see the comfortable workflow provided by it.

I asked here #386 (comment), whether this would be possible, but then had fun, implementing it myself.

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.

1 participant