Skip to content

Commit 62b2a36

Browse files
fix: Allow jupyter backend manual selection
1 parent 48090b0 commit 62b2a36

File tree

1 file changed

+3
-3
lines changed
  • src/ansys/tools/visualization_interface/backends/pyvista

1 file changed

+3
-3
lines changed

src/ansys/tools/visualization_interface/backends/pyvista/pyvista.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def show(
476476
# Update all buttons/widgets
477477
[widget.update() for widget in self._widgets]
478478

479-
self.show_plotter(screenshot)
479+
self.show_plotter(screenshot, **plotting_options)
480480

481481
picked_objects_list = []
482482
if isinstance(plottable_object, list):
@@ -493,7 +493,7 @@ def show(
493493

494494
return picked_objects_list
495495

496-
def show_plotter(self, screenshot: Optional[str] = None) -> None:
496+
def show_plotter(self, screenshot: Optional[str] = None, **kwargs) -> None:
497497
"""Show the plotter or start the `trame <https://kitware.github.io/trame/index.html>`_ service.
498498
499499
Parameters
@@ -512,7 +512,7 @@ def show_plotter(self, screenshot: Optional[str] = None) -> None:
512512
visualizer.set_scene(self._pl)
513513
visualizer.show()
514514
else:
515-
self.pv_interface.show(screenshot=screenshot)
515+
self.pv_interface.show(screenshot=screenshot, **kwargs)
516516

517517
pv.OFF_SCREEN = self._pv_off_screen_original
518518

0 commit comments

Comments
 (0)