The IPython dev team gets a lot of questions about how IPython Notebooks can be used on various blogging platforms. There have been a number of different attempts to use nbconvert to export a notebook to HTML and then embedding that HTML in the blogging platform. With the introduction of nbviewer it is trivial to embed a Notebook in any web page using iframes. Here is a simple example:

<iframe src="http://nbviewer.ipython.org/3835181/" width="800" height="1500"></iframe>

Which produces the embedded Notebook shown below. The only subtle part is that you have to set the width and height attributes manually to avoid having scroll bars on the iframe.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Looking for something?

Use the form below to search the site:


Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

Archives

All entries, chronologically...

Set your Twitter account name in your settings to use the TwitterBar Section.