I am trying to generate maps as part of a python script. Running the following directly on the python command (python tab in main gui) works.
import grass.script as gs
gs.run_command("d.mon", start="wx1")
gs.run_command("d.rast", map="mymap")
However, when running the same from a python scrip (e.g., using the GRASS Simple Python Editor) results in an empty monitor. Any idea what I am doing wrong (or is this a bug)?