First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

Run PSS/E from Jupyter Notebook

asked May 25 '2

LaLi gravatar image

updated May 25 '2

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.

2 answers

Sort by » oldest newest most voted
0

answered Jun 1 '2

jconto gravatar image

updated Jun 1 '2

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.

link

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 (Jun 7 '2)

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 (Jun 7 '2)
0

answered Jun 1 '2

ays gravatar image

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

link

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 (Jun 7 '2)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

3 followers

Stats

Asked: May 25 '2

Seen: 499 times

Last updated: Jun 01 '22