Skip to content

Commit d49451a

Browse files
fix: Simplify code
1 parent 81a1a5c commit d49451a

File tree

1 file changed

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

1 file changed

+1
-12
lines changed

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

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -515,18 +515,7 @@ def show_plotter(self, screenshot: Optional[str] = None, **kwargs) -> None:
515515
visualizer.set_scene(self._pl)
516516
visualizer.show()
517517
else:
518-
jupyter_backend = kwargs.pop("jupyter_backend", None)
519-
try:
520-
self.pv_interface.show(
521-
screenshot=screenshot, jupyter_backend=jupyter_backend,
522-
**kwargs
523-
)
524-
except TypeError as e:
525-
logger.warning(
526-
"There are incompatible keyword arguments in the `show` method. "
527-
"Please check the documentation for the correct usage." + str(e)
528-
)
529-
self.pv_interface.show(screenshot=screenshot, jupyter_backend=jupyter_backend)
518+
self.pv_interface.show(screenshot=screenshot, **kwargs)
530519

531520
pv.OFF_SCREEN = self._pv_off_screen_original
532521

0 commit comments

Comments
 (0)