-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rework k3d widget for html output #53
Comments
k3d output works as interactive with |
nbconvert has an option to store the widget state, but that doesn't seem to have the effect, that the widget is also embedded. https://github.com/jupyter/nbconvert/pull/900/files#diff-bee04d71b1dfc0202a0239b1513fd81d983edc339a9734ca4f4813276feed032R175 |
the current controls won't work because they are are not linked with |
So only the time slider is currently linked (https://github.com/BAMWelDX/weldx-widgets/blob/main/weldx_widgets/visualization/csm_k3d.py#L768). So the other elements of the control group need to be linked as well. |
Saving the widget state (in Jupyter lab) and manually converting via nbconvert --to html works. So the remaining tasks seem to be:
|
I plan to do a major restructure on the whole if you want to change something in the current interface I would suggest connecting the show/hide buttons with their |
The current k3d widget (for CSM, SpatialData etc.) is based on ipywidgets with python kernel interactions
Most of the interactions should be possible to archive with jslink (without needing python kernel)
This would allow the generated widget to be saved as html (and embedded later) with the ipywidgets interactions intact, see here for an example
In addition, it should be possible to display the k3d output (including controls) in sphinx documentation
https://ipywidgets.readthedocs.io/en/latest/embedding.html
This would only leave the animation part to require the python kernel (which could be implemented using the k3d animation feature at the cost of probably huuuuge resulting html files depending on the animation)
The text was updated successfully, but these errors were encountered: