Skip to content
5 changes: 2 additions & 3 deletions src/ansys/tools/visualization_interface/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
"""Visualization Interface Tool is a Python client library for visualizing the results of Ansys simulations."""
import importlib.metadata as importlib_metadata
import os

import pkg_resources

__version__ = pkg_resources.get_distribution("ansys-tools-visualization-interface").version
__version__ = importlib_metadata.version(__name__.replace(".", "-"))

USE_TRAME: bool = False
DOCUMENTATION_BUILD: bool = False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ def __init__(
# Generate custom scene if ``None`` is provided
if scene is None:
scene = pv.Plotter(plotter_kwargs)

if TESTING_MODE:
scene.off_screen = True
# If required, use a white background with no gradient
if not color_opts:
color_opts = dict(color="white")
Expand Down