I would have a look at my jsonhandlers branch:<div><br></div><div><a href="https://github.com/ipython/ipython/pull/2518">https://github.com/ipython/ipython/pull/2518</a><br></div><div><br></div><div>And then grab the jsplugins repo:</div>
<div><br></div><div><a href="https://github.com/ipython/jsplugins">https://github.com/ipython/jsplugins</a><br></div><div><br></div><div>These existing plugins should show you how to get started with the new APIs (which I recommend using).</div>
<div><br></div><div>Cheers,</div><div><br></div><div>Brian</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 12, 2012 at 8:10 AM, Massimo Di Stefano <span dir="ltr"><<a href="mailto:massimodisasha@gmail.com" target="_blank">massimodisasha@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi IPython!<br>
<br>
<br>
i was tring to learn how to code a cell in order to have interaction between  python <->  Javascript (jquery?)<br>
<br>
i can try to explain with an example …<br>
<br>
let's say i have a dictionary in python :<br>
<br>
<br>
>>>mydict = {'key1':'val1', 'key2':'val2'}<br>
<br>
and a function that take as input the dict and print out the value :<br>
<br>
>>>def printval(mydict, keyN):<br>
           print maydict['keyN']<br>
<br>
<br>
what i'm tring to learn is :<br>
<br>
 how to render inside an "IPython notebook cell"   a js gui tool like a "dropdown menu"  that will contain the "mydict keys"<br>
 and  button that will connect the selected value in the dropdown menu to the printval function ?<br>
<br>
i guess it should be trivial for who knows the how the internal engine works, i was really attracted by the  new "js plugin system" (i saw it in NYC at the PyData … cool!)<br>
for me an example like this can be a perfect starting point to start to develop something useful ….<br>
<br>
thamk you for you great support!<br>
<br>
Massimo.<br>
<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Brian E. Granger<br>Cal Poly State University, San Luis Obispo<br><a href="mailto:bgranger@calpoly.edu" target="_blank">bgranger@calpoly.edu</a> and <a href="mailto:ellisonbg@gmail.com" target="_blank">ellisonbg@gmail.com</a><br>
<br>
</div>