Closed deanrp2 closed 2 years ago
The only thing I found on this is here: https://www.pyimagesearch.com/2015/08/24/resolved-matplotlib-figures-not-showing-up-or-displaying/
But the fix is pretty complicated. If possible, we should try to not make users need to do all this.
I think I got it after our talk. It is on line 33 of neorl/benchmarks/kp.py
and line 34 of neorl/benchmarks/tsp.py
. It is changing some display settings. I would say throw those imports in the __init__.py
file into the bench_2dplot
function. Also, make sure that these are necessary, this seems like the sort of thing somebody may need if they have a weird setup that slipped through into the repo.
@deanrp2 Thank you for your comments and for catching this bug. As you have pointed out the two benchmarks TSP/KP have a silent plot suppression of matplotlib
using the mode Agg
, which is invoked when you run import neorl.benchmarks
. These commands are removed in the next NEORL release.
The code snippet below does not produce a plot when using ssh on a linux computer:
These two code snippets do produce the plot: