<p dir="ltr"><br>
On Sep 24, 2015 4:32 PM, "Kiko" <<a href="mailto:kikocorreoso@gmail.com">kikocorreoso@gmail.com</a>> wrote:<br>
><br>
> 2015-09-24 23:25 GMT+02:00 Wes Turner <<a href="mailto:wes.turner@gmail.com">wes.turner@gmail.com</a>>:<br>
>><br>
>> <a href="https://www.google.com/search?q=ipython+d3">https://www.google.com/search?q=ipython+d3</a><br>
>><br>
>> Vega visualization grammar<br>
>> | Docs: <a href="https://github.com/vega/vega/wiki/Vega-and-D3">https://github.com/vega/vega/wiki/Vega-and-D3</a><br>
>> | Homepage: <a href="https://vega.github.io/">https://vega.github.io/</a><br>
>><br>
>> mpld3: matplotlib + d3<br>
>> | Homepage: <a href="http://mpld3.github.io/">http://mpld3.github.io/</a><br>
>><br>
>> IPython widgets (interactive)<br>
>> | Docs: <a href="https://github.com/ipython/ipython/wiki/widgets">https://github.com/ipython/ipython/wiki/widgets</a><br>
>><br>
>> pythreejs IPython Notebook extension<br>
>> | Src: <a href="https://github.com/jovyan/pythreejs/blob/master/pythreejs/pythreejs.py">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">https://github.com/jovyan/pythreejs/blob/master/pythreejs/nbextension/pythreejs.js</a><br>
>><br>
>> * [ ] JSON-LD<br>
>>    * <a href="http://json-ld.org/playground/">http://json-ld.org/playground/</a><br>
><br>
> Thanks.<br>
><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.</p>
<p dir="ltr">IIUC, that's more or less how widget controls operate.</p>
<p dir="ltr">also, here's this:</p>
<p dir="ltr">ipython-jsobject<br>
Src: <a href="https://github.com/jdfreder/ipython-jsobject">https://github.com/jdfreder/ipython-jsobject</a></p>
<p dir="ltr">    JSON-LD (and/or e.g. CSVW) with RDFJS could be helpful: <a href="https://github.com/rdfjs/rdfjs.org">https://github.com/rdfjs/rdfjs.org</a><br>
     * <a href="https://github.com/rdfjs/rdfjs.org/wiki/Projects">https://github.com/rdfjs/rdfjs.org/wiki/Projects</a> #LinkedData<br>
     * <a href="http://www.w3.org/community/rdfjs/wiki/Comparison_of_RDFJS_libraries">http://www.w3.org/community/rdfjs/wiki/Comparison_of_RDFJS_libraries</a><br>
       * [ ] TODO: link these resources</p>
<p dir="ltr">><br>
>  <br>
>><br>
>> On Sep 24, 2015 3:25 PM, "Kiko" <<a href="mailto:kikocorreoso@gmail.com">kikocorreoso@gmail.com</a>> wrote:<br>
>>><br>
>>><br>
>>><br>
>>> 2015-09-24 22:17 GMT+02:00 Jacob Evans <<a href="mailto:jakegod14@gmail.com">jakegod14@gmail.com</a>>:<br>
>>>><br>
>>>> Hey Kiko,<br>
>>>> What kind of data are you trying to get into python and in what way?<br>
>>>><br>
>>>> I think what your looking for is called JSON<br>
>>>> <a href="https://en.wikipedia.org/wiki/JSON">https://en.wikipedia.org/wiki/JSON</a><br>
>>>><br>
>>>> What you going to do is format your JavaScript output into JSON then processes in python with a package like json.<br>
>>>><br>
>>>> Example here<br>
>>>> <a href="http://docs.python-guide.org/en/latest/scenarios/json/">http://docs.python-guide.org/en/latest/scenarios/json/</a><br>
>>>><br>
>>><br>
>>> Thanks Jacob,<br>
>>><br>
>>> I think I didn't explain it very well.<br>
>>><br>
>>> 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>
>>> Maybe this example make things clearer.<br>
>>>  <br>
>>>><br>
>>>><br>
>>>> On Thu, Sep 24, 2015 at 2:12 PM, Kiko <<a href="mailto:kikocorreoso@gmail.com">kikocorreoso@gmail.com</a>> wrote:<br>
>>>>><br>
>>>>> Hi all,<br>
>>>>><br>
>>>>> Is there a way to get information from javascript into Python?<br>
>>>>><br>
>>>>> I googled about it but I couldn't find related info.<br>
>>>>><br>
>>>>> Thanks!!<br>
>>>>><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">https://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
>>>>><br>
>>>><br>
>>>><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">https://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
>>>><br>
>>><br>
>>><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">https://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
>>><br>
>><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">https://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
>><br>
><br>
><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">https://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
><br>
</p>