When using tmux on the local machine (mac) and doing plt.show()
, the window does not show up. But the code can be run and a figure can be saved. Meanwhile, a x-window can be open on the same session.
I have test it on iterm2 and the native terminal on mac. It gives me the same behavior. Do we need some extra configurations to display the plots on tmux?
export DISPLAY="`tmux show-env | sed -n 's/^DISPLAY=//p'`"
DISPLAY
becomes/private/tmp/com.apple.launchd.k7zDOlgpLB/org.macosforge.xquartz:0
after export.matplotlib.get_backend()
)? Are there no error messages or warnings whatsoever? Also, you might have more luck asking on superuser.com.