Using the ipywidgets framework would be a natural way to do this - it provides a way to automatically sync data between the web browser and the kernel. For example, we have a scenegraph-like api already with pythreejs (wrapping three.js), which can call back to python code when the camera viewpoint changes, when the user picks a point in the 3d scene, etc.
If you needed to use osg.js, someone would need to write code wrapping osg.js and exposing it to the notebook. If you could use the scenegraph for pythreejs, then perhaps all that is needed for basic functionality is converting from freecad into the pythreejs scenegraph. pythreejs: https://github.com/jovyan/pythreejs demo: https://github.com/jovyan/pythreejs/blob/master/examples/Examples.ipynb, http://jupyter.org/widgets (click pythreejs in the tab menu on the side) On Wed, Oct 4, 2017 at 8:50 AM Lorenz L. <[email protected]> wrote: > -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAPDWZHxcDzPc6jPrJF6NyX%2BVZh5eU%2Bt3fssXBwJvfZwEgJOCpA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
