soxofaan / jupyter-playground

Random collection of Jupyter notebooks
32 stars 13 forks source link

Return Values from JS to Python #3

Open Dadatata-JZ opened 4 years ago

Dadatata-JZ commented 4 years ago

Hi there,

I studied your wonderful article "https://www.stefaanlippens.net/jupyter-custom-d3-visualization.html". It is very useful. I am trying to build some interactive components referring to your example. I am curious whether you have any ideas about how to return values from JS for reimplementing these calculation results in python.

For example, in your sample, assuming, I want to return the circle [id] which is interacted by the user. This info can be gathered by js, now I want to return to jupyter.

Thanks in advance