launch_session#
- ansys.edb.core.session.launch_session(ansys_em_root, port_num=None)#
Launch a local session to an EDB API server.
The session must be manually disconnected after use by calling session.disconnect()
- Parameters:
Examples
Create a session and then disconnect it
>>> session = launch_session("C:\\Program Files\\AnsysEM\\v231\\Win64", 50051) >>> # program goes here >>> session.disconnect()