jupyter icon indicating copy to clipboard operation
jupyter copied to clipboard

Copying output of REPL

Open warnerwarner opened this issue 1 year ago • 1 comments

Hi,

I'm sorry if this has been asked before, but I can't seem to find anyone else who has mentioned this. Is it possible to put images or outputs of the repl into the kill ring to then yank in other documents?

Thanks

warnerwarner avatar Jul 23 '24 22:07 warnerwarner

For the case of copying images into the clipboard, I have the function gm/copy-image-to-clipboard in here. Most functions were copied/modified from ox-clip.el. It will copy the image at point into the clipboard (the output in the jupyter repl or an opened image file or an org-mode fragment, etc.). How you can paste it in emacs again is beyond this function, but see org-paste-link-xclip here.

gmoutso avatar Oct 07 '24 11:10 gmoutso