matplotlib4j
matplotlib4j copied to clipboard
plt.show();
I tried to follow the demo but when I type plt.show(), My IDE gives this warning:
Unhandled exceptions: java.io.IOException, com.github.sh0nk.matplotlib4j.PythonExecutionException
As a result, the code failed to compile. Please try to investigate this issue.
@AirJunda Sorry for replying late. Do you still have the problem?
When you see PythonExecutionException
with a very simple case such as the demo, the most suspicious cause is that the python runtime misses matplotlib library or such environmental problem. Could you check your python environment again? If you put the detailed error log with python Traceback
, I could help further investigation.
Plot plt = Plot.create(PythonConfig.pythonBinPathConfig("/Users/sh0nk/my_repos/.venv/bin/python"));
Replace with your python.exe path