##// END OF EJS Templates
Image embed vs not embed notebook example...
Image embed vs not embed notebook example consist of 2 images, same URL, display in the notebook, one witih embed=True the other with embed=False, Chosen url is google doodle url which should show : the first, embeded : google doodle of robert doisneau's commemoration day the other, with url kwarg : google doodle of current the day

File last commit:

r6530:fe2f9ba3
r6530:fe2f9ba3
Show More
Image_embed_vs_url.ipynb
108 lines | 43.6 KiB | text/plain | TextLexer
/ docs / examples / notebooks / Image_embed_vs_url.ipynb
In [1]:
from IPython.core.display import *

Getting the images

In [2]:
Embed      = Image(    'http://www.google.fr/images/srpr/logo3w.png')
SoftLinked = Image(url='http://www.google.fr/images/srpr/logo3w.png')

Today's Google doodle, (at the time I created this notebook). Should also works in the Qtconsole. Drawback is that the saved notebook will be a little more heavier, but readable offline.

In [3]:
Embed
Out[3]:
<IPython.core.display.Image at 0x104880890>

Today's google doodle, visible only with an active internet connexion, that should be different from the previous one. This will not work on Qtconsole. Notebook saved with this kind of image will be lighter and always reflect the curent version of the source, but the image won't display offline.

In [4]:
SoftLinked
Out[4]:
No description has been provided for this image

Of course, if you re-run this notebook, the two doodles will be the same again.