Skip to content

Commit ea46035

Browse files
Bump version 0.4.1
1 parent ef2dc7f commit ea46035

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

doc/changelog.d/135.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix: Remove Jupyter warning

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.4.0"
7+
version = "0.4.1"
88
description = "A Python visualization interface for PyAnsys libraries"
99
readme = "README.rst"
1010
requires-python = ">=3.9,<4"

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def plot_iter(
289289
def show(
290290
self,
291291
show_plane: bool = False,
292-
jupyter_backend: Optional[str] = "trame", # Use the PyVista default backend
292+
jupyter_backend: Optional[str] = None, # Use the PyVista default backend
293293
**kwargs: Optional[Dict],
294294
) -> None:
295295
"""Show the rendered scene on the screen.
@@ -332,7 +332,10 @@ def show(
332332
# If screenshot is requested, set off_screen to True for the plotter
333333
if kwargs.get("screenshot") is not None:
334334
self.scene.off_screen = True
335-
self.scene.show(jupyter_backend=jupyter_backend, **kwargs)
335+
if jupyter_backend:
336+
self.scene.show(jupyter_backend=jupyter_backend, **kwargs)
337+
else:
338+
self.scene.show(**kwargs)
336339

337340
def set_add_mesh_defaults(self, plotting_options: Optional[Dict]) -> None:
338341
"""Set the default values for the plotting options.

0 commit comments

Comments
 (0)