Machine Learning and Data Science
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.
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:
I found in the page’s source that the HTML conversion of my notebook gets embedded in an iframe with src=
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’ ‘Out’ etc… goes waste…
Comments are closed.