This is an awesome solution. Worked just as advertised but I still have to test this out on Safari. Only problem, certain iPython notebooks I have when exported to HTML are 10s of M. Uploading several such notebooks can cause constraints on the hosting solution. I wish there was an on-the-fly execution mode.
Thanks.
Your right that this isn’t a good solution for large notebooks. I had to trim the animation sizes of some notebooks I wanted to put up to make it work. I imagine that one could setup some kind of on the fly solution on a system that one fully controlled, but it would likely be much more involved than what I’m doing here.
Good point on hosting, but GitHub actually does this really well! Recently they integrated the nbconvert feature so you can view ipython notebooks in their repo browser. For example, my notebook can be viewed here:
Very nice solution, thank you. I have used your approach verbatim essentially to embed IPython Notebook results in my blog. Works fine for my use. I my tinker with it later to save space… Too much width under ‘In[1]’ ‘Out[1]’ etc… goes waste…
This is an awesome solution. Worked just as advertised but I still have to test this out on Safari. Only problem, certain iPython notebooks I have when exported to HTML are 10s of M. Uploading several such notebooks can cause constraints on the hosting solution. I wish there was an on-the-fly execution mode.
Thanks.
Your right that this isn’t a good solution for large notebooks. I had to trim the animation sizes of some notebooks I wanted to put up to make it work. I imagine that one could setup some kind of on the fly solution on a system that one fully controlled, but it would likely be much more involved than what I’m doing here.
Good point on hosting, but GitHub actually does this really well! Recently they integrated the nbconvert feature so you can view ipython notebooks in their repo browser. For example, my notebook can be viewed here:
https://github.com/cthoyt/notebooks/blob/master/Hope's%20Word%20Puzzles.ipynb
I found in the page’s source that the HTML conversion of my notebook gets embedded in an iframe with src=
https://render.githubusercontent.com/view/ipynb?commit=5674a3583941243f8443ec36111f450ddee908ad&enc_url=68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f6374686f79742f6e6f7465626f6f6b732f353637346133353833393431323433663834343365633336313131663435306464656539303861642f486f70652773253230576f726425323050757a7a6c65732e6970796e62&nwo=cthoyt%2Fnotebooks&path=Hope%27s+Word+Puzzles.ipynb&repository_id=29173985#7daea738-1ead-438f-af6b-70e1b964c960
I think there’s a pattern to follow here but it might be easier to just got to the page yourself and get the iframe’s src.
Very nice solution, thank you. I have used your approach verbatim essentially to embed IPython Notebook results in my blog. Works fine for my use. I my tinker with it later to save space… Too much width under ‘In[1]’ ‘Out[1]’ etc… goes waste…