Ansys Learning Forum › Forums › Discuss Simulation › Photonics › Problem Connecting to Lumerical via Python › Reply To: Problem Connecting to Lumerical via Python
July 26, 2021 at 6:21 pm
Lito
Ansys Employee
Yes, you will not be able to add modules into our bundled python. You will have to install Python3 in your machine and add the modules required by our API and your script. Then run your python script using your Python3 installation and set the PATH to include your Python installation, the Lumerical install and Lumerical API path in your environment variables.
Save the script as a python script with the extension ".py" and not as a Lumerical script file with the extention ".lsf".
Save the script as a python script with the extension ".py" and not as a Lumerical script file with the extention ".lsf".