vscode: can't copy figures to clipboard from jupyter notebook
Issue Type: Bug
in jupyter notebook, produce any plot, then select and try to copy to clipoard either by pressing ctrl-c or edit-copy.
It doesn’t do anything and the clipboard remains empty. The only option is to save the figure to disk, which is not practical. I had to go back to use the browser instead of VScode for jupyter notebooks.
VS Code version: Code 1.58.2 (c3f126316369cd610563c75b1b1725e0679adfb3, 2021-07-14T22:10:15.214Z) OS version: Windows_NT x64 10.0.19042 Restricted Mode: No
System Info
Item | Value |
---|---|
CPUs | Intel® Core™ i7-8850H CPU @ 2.60GHz (12 x 2592) |
GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled skia_renderer: enabled_on video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
Load (avg) | undefined |
Memory (System) | 31.72GB (22.12GB free) |
Process Argv | –crash-reporter-id 2f12ecf8-3564-49b2-8351-e7b4544d8b03 |
Screen Reader | no |
VM | 0% |
Extensions (11)
Extension | Author (truncated) | Version |
---|---|---|
atlascode | atl | 2.9.1 |
githistory | don | 0.6.17 |
gitlens | eam | 11.6.0 |
githd | hui | 2.2.4 |
vscode-github | Kni | 0.30.6 |
python | ms- | 2021.7.1060902895 |
vscode-pylance | ms- | 2021.7.7 |
jupyter | ms- | 2021.8.1054968649 |
cpptools | ms- | 1.5.1 |
vscode-commons | red | 0.0.6 |
vscode-yaml | red | 0.22.0 |
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspyt653:30270858
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551cf:30345471
vspre833:30321513
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscus158:30321503
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
vscextlang:30333561
binariesv615:30325510
vsccppwt:30329788
pythonvssor306:30344512
bridge0708:30335490
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 44
- Comments: 22 (2 by maintainers)
Is this issue being worked on? It would great to have this copy/paste feature - it takes a while to have to save the images and it clogs up directories with tons of images… Thanks!
This feature would be extremely useful. I have worked before with Atom+Hydrogen and it was possible to copy+paste or drag and drop images from the output panel. This made my life much easier. Now I’m using VSCode and I do miss a lot this feature. If I want to quickly copy an image elsewhere I need to either navigate to a directory and save it there or do a screenshot, which is not that practical.
With the Jupyter extension installed and the latest vscode-notebook-renderers extension, there should be a new copy button that shows up on mouse hover over the output, which will place the image into the system clipboard.
Make sure you have the correct presentation selected, only png ouput is currently supported:
Just chipping in that this feature would be very useful and sharing my current workaround. There are currently two methods of saving a picture to be used in another document:
Saving is slow to do for many pictures, and print-screen reduces the image quality. Being able to right-click and copy the image would be great.
Indeed, this is definitely the number 1 feature that irks me the most in the VS Code Jupyter workflow!
This feature would be very useful! the workarounds are very annoying. It would be great to have it.
+1, this feature would be super useful!
Have the same problem. It really hinders sharing work results and collaboration. Saving as a work around is extremely tedious and time consuming.