[IPython-User] HTML() does not show for some URLs

W Gong wen.g.gong@gmail....
Wed Nov 28 13:14:11 CST 2012


Hi,
I tried the following snippet in IPython Notebook 0.13

*from IPython.display import HTML*
*
*
*sites = {*
*'google': 'http://www.google.com',*
*'yahoo': 'http://www.yahoo.com',*
*'lbl': 'http://www.lbl.gov',*
*'microsoft': 'http://www.microsoft.com',*
*'intel': 'http://www.intel.com',*
*'mit': 'http://www.mit.edu',*
*'stanford': 'http://www.stanford.edu',*
*'speedtest': 'http://www.speedtest.net'*
*}*
*
*
*# ok if lbl, microsoft, intel, mit, stanford, speedtest*
*# not ok if google, yahoo*
*url = '<iframe src="%s" width=1000 height=450></iframe>' % sites['google']*
*HTML(url)*

For google and yahoo, the output is blank (nothing shows up)

Can anyone please confirm? If true, any explanation?

Thanks,

- Wen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20121128/fb13bda2/attachment.html 


More information about the IPython-User mailing list