matplotlib4j icon indicating copy to clipboard operation
matplotlib4j copied to clipboard

plt.show();

Open AirJunda opened this issue 4 years ago • 2 comments

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 avatar Apr 08 '20 01:04 AirJunda

@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.

sh0nk avatar Jul 24 '20 13:07 sh0nk

Plot plt = Plot.create(PythonConfig.pythonBinPathConfig("/Users/sh0nk/my_repos/.venv/bin/python"));

Replace with your python.exe path

awambua avatar Jun 18 '22 18:06 awambua