connect#
- ansys.sherlock.core.launcher.connect(port=9090, timeout=120)#
Connect to a local instance of Sherlock.
Available Since: 2025R2
- Parameters:
- port: int, optional
Port number for the connection. Default is 9090.
- timeout: int, optional
Maximum time (in seconds) to wait for the connection to Sherlock to be established. Default is 120 seconds.
- Returns:
- :
Sherlock
The instance of sherlock.
- Return type:
Sherlock
Examples
>>> from ansys.sherlock.core import launcher >>> sherlock = launcher.connect(port=9092)