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

Interaction with Emacs Python mode #6

Open
balbirthomas opened this issue Jul 11, 2023 · 0 comments
Open

Interaction with Emacs Python mode #6

balbirthomas opened this issue Jul 11, 2023 · 0 comments

Comments

@balbirthomas
Copy link

Use Case
I would like to edit a Python script using Emacs' built-in Python mode and use eaf-jupyter console as the Python interpreter.

When using Emacs Python mode typically one launches a Python interpreter REPL using C-c C-p. There after it is possible to send blocks of code being edited to this REPL. For example C-c C-c sends the whole buffer. Is it possible to do the same using eaf-jupyter REPL.

Describe the solution you'd like
It would be very useful to be able to use eaf-jupyter as a replacement for the standard Python REPL built into Emacs (which is launched by C-c C-p). A suitable alternative workflow for eaf-jupyter would be

  • Launch eaf-open-jupyter
  • Open a Python script for editing
  • Use a key sequence to inform Emacs Python mode that it should use the eaf-jupyter console as the REPL.
  • Now C-c C-c sends the contents to of the Python script buffer to the eaf-jupyter for execution.

If this feature is already available, please do consider documenting it in the README or elsewhere.

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

1 participant