-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
Support pasting of images from clipboard in markdown cells of Notebooks #119961
Comments
@rebornix nothing happens when inserting. empty cell. How to fix it? I got a new problem when entering a request . the image is not displayed |
This probably falls under #30066 instead of implementing a notebook specific solution, it would be great if our markdown language features supported this in any markdown files |
Would be extremely helpful, I have been using it all the time in JupyterLab to paste content from multiple sources: tables with classnames for datasets, tables with required format from the end-user of the data, etc etc. Quite handicapping not having it! |
This request has been referenced in the Jupyter extension's marketplace review on 4/11/2022. |
If it's not clear from the above, please keep in mind the direction tools like Jupyter have implemented this (as I have been told... I haven't verified this myself). Instead of adding references to files on disk (or otherwise), it will simply convert images to base64 and embed them directly into the markdown as text. This way a notebook can be passed around without needing to ensure that referenced image files are included. |
This would be such a great addition. Copy/pasting images from clipboard is the only thing that makes me switch some times to JupyterLab from VSCode. |
Jupyter doesn't put it into the markdown itself, but rather adds an 'attachment' entry into the cell json. Something like so:
This is described here: |
Once we expose an api for copy/paste, this should be handled by Jupyter (I'll leave it up to you if this means our built-in simple extension or by the full one) |
I believe @amunger was looking at this this month. |
Pasting images from the clipboard into a markdown cell is released! It requires enabling the following two settings:
|
@RandomUserrr commented on Thu Mar 25 2021
when i want to insert local image into a cell nothing happens :(
Extension version: 2021.5.685944597
VS Code version: Code - Insiders 1.55.0-insider (6ebe2a1, 2021-03-25T16:25:06.257Z)
OS version: Windows_NT x64 10.0.19042
@DonJayamanne commented on Thu Mar 25 2021
Thanks for filing this issue, please could you provide some steps on what you have tried and what you mean by inserting local image? I.e. steps for us to be able to repro this issue.
@RandomUserrr commented on Thu Mar 25 2021
I took a screenshot and want to insert an image via ctrl + v. this works in jypiter notebook but doesn't work in vscode
The text was updated successfully, but these errors were encountered: