Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

run JEPlus in python

asked 2023-03-09 12:27:34 -0600

updated 2023-03-20 11:49:30 -0600

Hi, How can I run JEPlus+EA in Python using Jupyter Notebook via Anaconda? Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-03-17 20:04:14 -0600

updated 2023-03-17 20:05:38 -0600

Assuming you have already created the jEPlus project using the jEPlus GUI and saved it to a file, e.g. project.json, running jEPlus+EA from a Python Jupyter Notebook is as easy putting the following 2 lines in your Jupyter Notebook and running them:

import subprocess
subprocess.run(["java", "-jar", "jEPlus.jar", "-all", "project.json"])

The code above invokes jEPlus from the command line and runs the project.json project. It assumes the Jupyter Notebook, jEPlus Java applet, and project file are in the same directory. For more information on the possible command line arguments for jEPlus, type the following on the command line:

java -jar jEPlus.jar -help
edit flag offensive delete link more

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

2 followers

Stats

Asked: 2023-03-09 12:27:34 -0600

Seen: 483 times

Last updated: Mar 17 '23