<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-09-24 23:25 GMT+02:00 Wes Turner <span dir="ltr"><<a href="mailto:wes.turner@gmail.com" target="_blank">wes.turner@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p dir="ltr"><a href="https://www.google.com/search?q=ipython+d3" target="_blank">https://www.google.com/search?q=ipython+d3</a><br></p>
<p dir="ltr">Vega visualization grammar<br>
| Docs: <a href="https://github.com/vega/vega/wiki/Vega-and-D3" target="_blank">https://github.com/vega/vega/wiki/Vega-and-D3</a><br>
| Homepage: <a href="https://vega.github.io/" target="_blank">https://vega.github.io/</a></p>
<p dir="ltr">mpld3: matplotlib + d3<br>
| Homepage: <a href="http://mpld3.github.io/" target="_blank">http://mpld3.github.io/</a></p>
<p dir="ltr">IPython widgets (interactive)<br>
| Docs: <a href="https://github.com/ipython/ipython/wiki/widgets" target="_blank">https://github.com/ipython/ipython/wiki/widgets</a></p>
<p dir="ltr">pythreejs IPython Notebook extension<br>
| Src: <a href="https://github.com/jovyan/pythreejs/blob/master/pythreejs/pythreejs.py" target="_blank">https://github.com/jovyan/pythreejs/blob/master/pythreejs/pythreejs.py</a> three.js<br>
| Src: <a href="https://github.com/jovyan/pythreejs/blob/master/pythreejs/nbextension/pythreejs.js" target="_blank">https://github.com/jovyan/pythreejs/blob/master/pythreejs/nbextension/pythreejs.js</a></p>
<p dir="ltr">* [ ] JSON-LD<br>
   * <a href="http://json-ld.org/playground/" target="_blank">http://json-ld.org/playground/</a></p></blockquote><div>Thanks.<br></div><div><br>Yes, I think all of these allow you to send information from Python to js but I'm talking about the opposite way. For instance, select an area in an openlayers map and then get the coordinates of the area back to Python.<br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5">
<div class="gmail_quote">On Sep 24, 2015 3:25 PM, "Kiko" <<a href="mailto:kikocorreoso@gmail.com" target="_blank">kikocorreoso@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-09-24 22:17 GMT+02:00 Jacob Evans <span dir="ltr"><<a href="mailto:jakegod14@gmail.com" target="_blank">jakegod14@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hey Kiko,<div>What kind of data are you trying to get into python and in what way?</div><div><br></div><div>I think what your looking for is called JSON</div><div><a href="https://en.wikipedia.org/wiki/JSON" target="_blank">https://en.wikipedia.org/wiki/JSON</a><br></div><div><br></div><div>What you going to do is format your JavaScript output into JSON then processes in python with a package like json.</div><div><br></div><div>Example here</div><div><a href="http://docs.python-guide.org/en/latest/scenarios/json/" target="_blank">http://docs.python-guide.org/en/latest/scenarios/json/</a><br></div><div><br></div></div></blockquote><div><br></div><div>Thanks Jacob,<br><br></div><div>I think I didn't explain it very well.<br><br></div><div>A dummy example, I have a D3 scatter plot on the notebook and I want to select some of the points with the mouse and then I want this selection to be available in Python to analyse it or whatever.<br><br></div><div>Maybe this example make things clearer.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, Sep 24, 2015 at 2:12 PM, Kiko <span dir="ltr"><<a href="mailto:kikocorreoso@gmail.com" target="_blank">kikocorreoso@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div dir="ltr"><div><div>Hi all,<br><br></div>Is there a way to get information from javascript into Python?<br><br></div><div>I googled about it but I couldn't find related info.<br></div><div><br></div>Thanks!!<br></div>
<br></div></div>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a><br>
<a href="https://mail.scipy.org/mailman/listinfo/ipython-dev" rel="noreferrer" target="_blank">https://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a><br>
<a href="https://mail.scipy.org/mailman/listinfo/ipython-dev" rel="noreferrer" target="_blank">https://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a><br>
<a href="https://mail.scipy.org/mailman/listinfo/ipython-dev" rel="noreferrer" target="_blank">https://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div>
</div></div><br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="https://mail.scipy.org/mailman/listinfo/ipython-dev" rel="noreferrer" target="_blank">https://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div></div>