In [1]: import os ...: import sys ...: import numpy as np ...: import matplotlib.pyplot as plt In [2]: plt.plot(np.sin(np.linspace(0.,np.pi,100))) ...: plt.show() qt.qpa.xcb: XKeyboard extension not present on the X server There is no XRandR 1.2 and later version available. There will be only fake screen(s) to use.