Newbie Question: Simulator and plotting

Thanks for the response. As for plotting, I started the first example:

import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4])
plt.ylabel(‘some numbers’)
plt.show()

I get the error:
ValueError: signal only works in main thread
on the line: plt.show()