PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, May 6, 2022

[FIXED] Where are copy-pasted images stored in Jupyter Notebook?

 May 06, 2022     image, jupyter-notebook     No comments   

Issue

This is very similar to this question but it hasn't been answered.

I launched a Jupyter server from PyCharm. I created a screenshot, and copy and pasted it into a Jupyter Notebook. The image wasn't otherwise saved. In Jupyter Notebook, the image appears like this: ![image.png](attachment:image.png) and I can see the image on the Jupyter server, but I can't see the image in the notebook file in PyCharm. I can't find where the image.png file is stored. I looked through the folder that the notebook is in, and I used the file explorer to check if the image is anywhere on my computer.

Does Jupyter Notebook store the copy-pasted image as a file? and if yes, where?


Solution

This answer here fills in some information on what is going on.
When you pasted it into the markdown cell, it got encoded as an attachment in base64 in the cell information for that cell. If you view the underlying code for the notebook in a text editor you should see encoded data. (You may wish to make a test notebook, separate from the one you care about, and add an image to test that after you save the edited new notebook.)

And so there is no separate saved file.



Answered By - Wayne
Answer Checked By - Mary Flores (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © 2025 PHPFixing