-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Can't paste two images from clipboard in markdown cell #3182
Comments
Found this issue after having the exact same problem. I think the overwrite occurs due to every pasted image having the same name (ie Does anyone know if there's a way to rename the inline image immediately after pasting? |
One easy fix would be for the notebook to automatically name each image sequentially: |
…le image paste per cell WIP because it needs to GC the attachments???
Proposed fix: #3821, use a uuid for each attachment. A more sophisticated thing would be to hash the image content to avoid storing duplicate attachments if an image is pasted twice (at least in the same cell). I didn't see a hashing library dependency already, so I didn't do that.
I was worried about this too, but found per #621, attachments will be scrubbed automatically when the notebook is saved. |
This still seems to be a problem. Anyone have a fix for this? |
I am also looking for a solution to the same problem. |
1 similar comment
I am also looking for a solution to the same problem. |
Same problem. Please fix |
This issue is still relevant now 2 years since it was opened. A fix would be greatly appreciated. |
This was working fine for me yesterday. As I pasted each image in the same cell, and number was automatically attached to the name of the image: image.png, image-1.png, image-2.png, etc. Now today it seems to be behaving as described above. I have not changed anything. Any ideas? Is there some configuration on my machine that could have changed? As a workaround, I had to drag the two images into two different markdown cells, and then (after saving the notebook and shutting down the notebook server) I used a text editor to move one of the Some more information:
|
Hi, I recently discovered the awesome paste image feature from clipboard in a markdown cell. However, as images are inserted as markdown code
![image.png](attachment:image.png)
, when inserting two images in the same cell, the first image is replaced by the second one and the first one is overwritten.The text was updated successfully, but these errors were encountered: