Ask Your Question
0

Run PSS/E from Jupyter Notebook

asked 2022-05-25 01:50:34 -0500

LaLi gravatar image

updated 2022-05-25 01:51:04 -0500

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.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2022-06-01 17:50:45 -0500

jconto gravatar image

updated 2022-06-01 17:54:19 -0500

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.

edit flag offensive delete link more

Comments

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

LaLi gravatar imageLaLi ( 2022-06-07 00:23:52 -0500 )edit

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...

jconto gravatar imagejconto ( 2022-06-07 10:06:38 -0500 )edit
0

answered 2022-06-01 09:34:28 -0500

ays gravatar image

Make sure that you use python 2.7 intepreter on your Jupyter Notebook.

edit flag offensive delete link more

Comments

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.

LaLi gravatar imageLaLi ( 2022-06-07 00:25:32 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

3 followers

Stats

Asked: 2022-05-25 01:50:34 -0500

Seen: 380 times

Last updated: Jun 01 '22