underworldcode / underworld3

https://underworldcode.github.io/underworld3/
Other
21 stars 10 forks source link

Fix pyvista issue while saving a screenshot #188

Closed gthyagi closed 7 months ago

gthyagi commented 7 months ago

I resolved the problem with saving the screenshot image as a PNG. Instead of using client, I set pv.global_theme.jupyter_backend to "trame".

lmoresi commented 7 months ago

OK - looks fine to me. We'll need to look at what happens on binder which is what drove this change.

julesghub commented 7 months ago

wow - that was a big PR. All the Notebooks vanished. This needs to be reflected in the README asap.

gthyagi commented 7 months ago

Same issue, could not see Example Notebooks in the binder.

gthyagi commented 7 months ago

@lmoresi In binder, pyvista throws segfault if pv.global_theme.jupyter_backend = "trame" and it works fine with client

gthyagi commented 7 months ago

Is it possible to check whether the Notebook is running in binder or not? Then set backend option accordingly