Run PSS/E from Jupyter Notebook
Has anyone tried to open PSS/E from Jupyter Notebook? I can run my PSSE34 on Python 2.7 command line and open PSS/E. However, when I try the same code on Jupyter Notebook the error psspy not found is occurring.
First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
Has anyone tried to open PSS/E from Jupyter Notebook? I can run my PSSE34 on Python 2.7 command line and open PSS/E. However, when I try the same code on Jupyter Notebook the error psspy not found is occurring.
I have prepared a simple jupyter file to load a case, run a load flows and save to a new case (jupyter on Anaconda3 32-bit, python 3.9.7, PSSe 34.9) Visit JContogoogledrive, enter the folder "python code" and then select “lf_demo.ipynb”. An icon on the top-center screen will perform the download. Once downloaded, open it with jupyter.
A few API functions results in error! (check the commented API function in the code) Please post your findings.
Thank you for your comment. I tried running your code. The following error appears. Import error: No module named psse34 I am using python 2 as the interpreter on Jupyter Notebook and my psse34.py file is in PSSPY27. C:\Program Files (x86)\PTI\PSSE34\PSSPY27
PSSe (default install) run py scripts by using the python install at c:\python27. Jupyter is an application installed under Anaconda, which install its own python. It seems your Conda setup's python environment cannot access PSSe's folders...
Thankyou for your comment. My interpreter shows python 2 on Jupyter Notebook. The following error appears. Import error: No module named psse34 I am using python 2 as the interpreter on Jupyter Notebook and my psse34.py file is in PSSPY27. C:\Program Files (x86)\PTI\PSSE34\PSSPY27.
Asked: May 25 '2
Seen: 499 times
Last updated: Jun 01 '22