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

Revision history [back]

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 arguments, type the following on the command line:

java -jar jEPlus.jar -help

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 arguments, possible command line arguments for jEPlus, type the following on the command line:

java -jar jEPlus.jar -help