1

run JEPlus in python

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

divsood04's avatar
41
divsood04
asked 2023-03-09 12:27:34 -0500
Aaron Boranian's avatar
14.1k
Aaron Boranian
updated 2023-03-20 11:49:30 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

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
rick's avatar
146
rick
answered 2023-03-17 20:04:14 -0500, updated 2023-03-17 20:05:38 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments