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

Sending cell of code #34

Open
KronosTheLate opened this issue Feb 1, 2022 · 2 comments
Open

Sending cell of code #34

KronosTheLate opened this issue Feb 1, 2022 · 2 comments

Comments

@KronosTheLate
Copy link

KronosTheLate commented Feb 1, 2022

Is it possible to send a cell/block of code, delimited by e.g. "##", "%#", or "%%" (Julia, Python and MatLab if I am not mistaken), to the terminal?

If not, concider this a feature request ^_^

@williamjameshandley
Copy link
Owner

Hi @KronosTheLate. I find the need to do this kind of thing quite regularly from markdown files. For example, imagine that a github README.md has a python script embedded in backticks, I would first activate the appropriate interpreter :Iipython, then select the appropriate portion of code, and send to that interpreter with Ctrl-S.

If I understand correctly, you'd like a command which upon activation locates the delimiters (in this case the triple backticks) and sends all code within those delimiters to the active interpreter (for some delimeters one could in principle detect the language to spark up the correct interpreter, though this might be hard).

@KronosTheLate
Copy link
Author

I think that is just it ^_^

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

No branches or pull requests

2 participants