I have a piece of code in an iPython laptop that programmatically creates a folder called βsoundβ that contains the following files: index.html, canvas.js, graph.js and style.css.
If I open index.html in my browser, I can see exactly the result that I want: a graph with nice JS animation representing vectors in and out of the process that I am modeling.

However, I would like to display the HTML file inside the iPython notebook itself.
To do this, I print the following code:
from IPython.display import IFrame IFrame('/Users/useird/Desktop/sound/index.html', width=700, height=350)
Which returns the following: 
I'm not an expert with css or js, but I think that iPython can display js inside an iframe, so what is wrong here?
thanks
source share