First time here? Check out the Help page!

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 2 years ago

updated 2 years ago

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 2 years ago

updated 2 years ago

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
Preview: (hide)
link

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: 2 years ago

Seen: 506 times

Last updated: Mar 17 '23