<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi all,<div><br></div><div>I currently work with d3.js ans I almost finished (fidd here: <a href="http://jsfiddle.net/mv9L7hjq/15/">http://jsfiddle.net/mv9L7hjq/15/</a>), but now I have to include this part into the project (<a href="https://www.lrde.epita.fr/wiki/Vaucanson">https://www.lrde.epita.fr/wiki/Vaucanson</a>), so basically we use IPython notebook for the graphical user interface, and what we would like to do is simply wrap my work on D3 into a IPython widget, so that we can display it when we need it.</div><div>I have made some research about IPython widget using Javascript but all I found is something like that (<a href="http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Interactive Widgets/Custom Widget - Hello World.ipynb">http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/Interactive%20Widgets/Custom%20Widget%20-%20Hello%20World.ipynb</a>)</div><div>But clearly I don’t want to rewrite the whole javascript file, but just load it and wrap both (HTML/CSS/JS) into a widget. I wonder if there is a way to do that ?</div><div><br></div><div>Thank you,</div><div><br></div><div>Cheers,</div><div><br></div><div>LB</div></body></html>