load_example#
- Session.load_example(example_name: str, uncompress: bool = False, root: str | None = None) str#
Load an example dataset.
This method downloads an EnSight session file from a known location and loads it into the current EnSight instance. The URL for the dataset is formed by combining the value given for the
example_nameparameter with a root URL. The default base URL is provided by Ansys, but it can be overridden by specifying a value for therootparameter.- Parameters:
- Returns:
strPath to the downloaded file in the EnSight session.
Examples
>>> from ansys.pyensight.core import LocalLauncher >>> session = LocalLauncher().start() >>> session.load_example("fluent_wing_example.ens") >>> remote = session.show("remote") >>> remote.browser()