Hello,
Please read:
I suggest you work on a simple minimal example (without the neural network) to isolate this issue that can render (or attempt to) in two different windows; once you understand that you can then integrate additional code.
You should add this statement to your code.
:)