plt.show() # ^This has to be after plt.imshow()
The solution was as simple as adding plt.show() at the end of the code snippet: