Skip to content

Commit 7930e0f

Browse files
Bump version 0.8.4
1 parent 4837e3c commit 7930e0f

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

doc/changelog.d/275.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix: Allow jupyter backend manual selection

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
44

55
[project]
66
name = "ansys-tools-visualization-interface"
7-
version = "0.8.3"
7+
version = "0.8.4"
88
description = "A Python visualization interface for PyAnsys libraries"
99
readme = "README.rst"
1010
requires-python = ">=3.10,<4"

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

Lines changed: 4 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,8 @@ 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+
jupyter_backend = kwargs.pop("jupyter_backend", None)
516+
self.pv_interface.show(screenshot=screenshot, jupyter_backend=jupyter_backend)
516517

517518
pv.OFF_SCREEN = self._pv_off_screen_original
518519

0 commit comments

Comments
 (0)