Skip to content

Commit

Permalink
Fix pyvista issue while saving a screenshot (#188)
Browse files Browse the repository at this point in the history
changed jupyter_backend to trame
  • Loading branch information
gthyagi authored Apr 23, 2024
1 parent 9e864db commit 0e8908d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/underworld3/visualisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def initialise():
pv.global_theme.camera["position"] = [0.0, 0.0, 5.0]

try:
pv.global_theme.jupyter_backend = "client"
pv.global_theme.jupyter_backend = "trame"
except RuntimeError:
pv.global_theme.jupyter_backend = "panel"

Expand Down Expand Up @@ -41,7 +41,7 @@ def mesh_to_pv_mesh(mesh):
vtk_filename = os.path.join(tmp, "tmpMsh.vtk")
mesh.vtk(vtk_filename)

pvmesh = pv.read(vtk_filename)
pvmesh = pv.read(vtk_filename)

return pvmesh

Expand Down

0 comments on commit 0e8908d

Please sign in to comment.