-
Notifications
You must be signed in to change notification settings - Fork 332
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
Copy/save image #245
Comments
On 31/03/16 02:57, huyiqun wrote:
I think this can be easily done. I'll mark this issue as an enhancement.
If you click on a one-line bubble, Hydrogen will copy its content to the clipboard. |
Which language are you using? For example in |
I am using python and looking for exactly what @rgbkrk has shown. I know saving to a file would be one option, but just wonder if a temporary copy and paste is possible as I am quite used to such functionality. :) |
+1 for this! what @rgbkrk is suggesting is exactly what I am looking for, as I am running my code on a remote notebook, hence |
+1! |
+1! This feature is critical for efficiency improvement when organizing analytics results |
In general it would be great if the plugin would simply allow to save an html copy of the script and the inlined outputs. |
+1! |
+1 |
1 similar comment
+1 |
I've labeled this as It looks like the API you'd want to use is the Atom ContextMenuManager, likely scoping it to |
if you highlight and run both lines:
with hydrogen, it will save the .png of the plot in the given path. |
+1 |
@rgbkrk |
I think it's an Atom thing we have to somehow expose, based on experience with context menus for Electron. |
I looked a little into the APIs. It appears that Hydrogen currently uses Atom's clipboard API, which seems to only support writing text and not an image. Atom's clipboard API seems to be separate from Electron's clipboard API, which does allow for writing an image to the clipboard, but it must be a |
I was able to get around this by opening the element inspector, selecting the image element, and copying the dataURI to my browser. So long as you have the |
+1 |
+1 I was very sad to find out that Jupyter didn't have this functionality... |
+1 Particularly when working with remote kernels copying images to your clipboard would be tremendously helpful. |
I've been using a hacky work around for this when working on a remote kernel (and so
It's really not ideal, but for one-off plots, I find it faster than saving to your remote server and retrieving via scp. |
When I use %inline mode to plot something, it is not possible to copy or save the image, but only to view it in atom. Is it possible to add such functionality or what is the best workaround on this? I currently connect a qtconsole to the existing hydrogen kernel, and run the plot code there in order to directly right click for copying and saving. Just wonder if this is by any chance doable in atom.
Also, a quick related question: when the output is one line, it does not pop up a small window that has option for copying or opening in a file. Can this be changed?
Thanks!
The text was updated successfully, but these errors were encountered: