I am starting to depend heavily on the IPython notebook app to develop and document algorithms. It is awesome; but there is something that seems like it should be possible, but I can't figure out how to do it:
I would like to insert a local image into my (local) IPython notebook markdown to aid in documenting an algorithm. I know enough to add something like <img src="image.png">
to the markdown, but that is about as far as my knowledge goes. I assume I could put the image in the directory represented by 127.0.0.1:8888 (or some subdirectory) to be able to access it, but I can't figure out where that directory is. (I'm working on a mac.) So, is it possible to do what I'm trying to do without too much trouble?
I put the IPython notebook in the same folder with the image. I use Windows. The image name is "phuong huong xac dinh.PNG".
In Markdown:
Code:
First make sure you are in markdown edit model in the ipython notebook cell
This is an alternative way to the method proposed by others
<img src="myimage.png">
:It also seems to work if the title is missing:
Note no quotations should be in the path. Not sure if this works for paths with white spaces though!
I am using ipython 2.0, so just two line.