<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:0 0 0 .8ex;border-left:1px #ccc solid;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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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">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>