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
Switch to K3D-based visualizations in Jupyter environments #1937
Conversation
K3D display works now in principal: https://docs.pymor.org/new-k3d-vis/tutorial_builtin_discretizer.html Some obvious problems remain:
Non-obvious:
|
8b36527
to
5f411d6
Compare
Fixed
Fixed by @HenKlei
unclear how to fix
Fixed. (at least in live jupyter) New/Remaining Problems:
|
18e66f2
to
e80291b
Compare
The plots work for me. Some comments:
|
Hi, @pmli ,
I have disabled the axes because they do not look nice in the default view from top. Also, the scaling of the z-axis coordinates depends on the data in order to avoid to flat or too steep plots. I would need to find out if and how custom labels could be applied to the axes. As a compromise, I have added a flat plot of the mesh as a reference. Please take a look at the new output.
Yes, but that is not doable with ipywidgets without a running kernel in the background. One can only link one value to another without any transformation.
Can't be fixed for the same reason. One would need to implement a custom widget, which, AFAIK, would have to be installed as a separate package. If it bothers you, we could replace 'speed' by 'delay' or so. Everything else does not seem realistic before the release. |
This PR significantly improves the K3D-based visualizer for our builtin discretizations and makes it the default backend for documentation builds. It will also automatically be the default backend in Jupyter notebooks as soon as K3D-tools/K3D-jupyter#424 is released.
The old, currently broken pythreejs-based visualizer is removed.
(new comment by @sdrave)