I rarely get the proper widget:
- either it's the buttons on the left during 1/10 of a second, then the drawing only,
- either it's the reverrse (see below)

- sometime it comes right. (when I try plot instead of plot.show(), but there is no clear pattern.
I note that there is an apparent "comm" problem

what could be the problem ?
