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

extending the %jukit_run helper to other languages (Julia) #123

Open
benkj opened this issue Dec 26, 2024 · 0 comments
Open

extending the %jukit_run helper to other languages (Julia) #123

benkj opened this issue Dec 26, 2024 · 0 comments

Comments

@benkj
Copy link

benkj commented Dec 26, 2024

Same as title. It would be great, but I don't know if possible.

The problem with current workflow is that send#selection as a cut&paste is very slow when dealing with large cells and selections, at least in all terminals I tried (gnome,kitty,iterm).

I'm wondering if we can extend jukit_run to use it in other languages. Things I thought, though I don't know if they are possible

  1. Run ipython instead of julia, and then run julia code from there using the juliacall package. Possibly the easiest option, but quite hacky
  2. using IJulia.jl in some clever way. For instance, IJulia.magic_help already has some predefined 'magics', so perhaps they are easy to extend
  3. Write a (small) julia package that handles jukit_run, but how?
  4. simplest yet not as powerful: write the selection into a file, and then run include("file") into the repl

Any thoughts / help would be appreciated, as I'm not familiar at all with IPython's magics

@benkj benkj changed the title extending the jukit_run helper to other languages (Julia) extending the %jukit_run helper to other languages (Julia) Dec 26, 2024
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