Normally, the matplotlib backend setting is written in ~ / .matplotlib / matplitlibrc
. For example, as follows.
backend: MacOSX
# backend: WebAgg
If you want to change this at runtime, you can put a value in the environment variable MPLBACKEND
.
MPLBACKEND=WebAgg python <script>
Recommended Posts