Skip to content
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

Errors when plotting interactively in notebooks via nbsphinx with PyVista/pythreejs #583

Closed
hakonanes opened this issue Dec 10, 2022 · 2 comments
Labels
documentation This relates to the documentation

Comments

@hakonanes
Copy link
Member

Interactive plots of EBSD master patterns and Kikuchi simulators using PyVista and pythreejs errors and warns both locally in Jupyterlab and using nbsphinx on Readthedocs (https://readthedocs.org/projects/kikuchipy/builds/18870880/).

After disabling lighting (initial cause of errors, see identical errors reported in jupyter-widgets/pythreejs#388), many warnings WARNING:traitlets:No handler found for comm target 'comm' are still emitted. I don't know where these come from. The plots display as expected locally when run manually, but nbsphinx is not able to run the notebook correctly (produces error reported in spatialaudio/nbsphinx#549). This is the case both locally and on Readthedocs' servers.

Switching PyVista/Jupyter backend to panel (https://docs.pyvista.org/user-guide/jupyter/index.html#demo-using-panel) solves this issue. Will try out new backend reported in pyvista/pyvista#3690 once it's available.

@hakonanes hakonanes added bug Something isn't working documentation This relates to the documentation labels Dec 10, 2022
@hakonanes hakonanes changed the title Errors when plotting interactively in notebooks via nbsphinx with pythreejs Errors when plotting interactively in notebooks via nbsphinx with PyVista/pythreejs Dec 10, 2022
@hakonanes
Copy link
Member Author

PyVista supports the Trame backend in v0.38 just released. We should look into using this backend for all docs: https://docs.pyvista.org/user-guide/jupyter/trame.html#trame-jupyter.

@hakonanes
Copy link
Member Author

#652 makes the currently interactive plots in the docs static. We can hopefully reintroduce interactive plots in the docs once pyvista/pyvista#5168 is ready!

@hakonanes hakonanes removed the bug Something isn't working label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This relates to the documentation
Projects
None yet
Development

No branches or pull requests

1 participant