-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Fix a display bug which cannot update figure correctly #2144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for pytorch-tutorials-preview ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
LGTM |
Sure! |
@Yichi-Lionel-Cheung can you please resolve the conflict? Thanks! |
Hi @svekars , conflict resolved |
When using notebook such as colab and local jupyter where
is_ipython == True
, the training procedure is not shown correctly. The figure is closed too fast to observe sinceclear_output(wait=True)
is always activated.Excanging
display.display(plt.gcf())
anddisplay.clear_output(wait=True)
could fix the bug.In addition, after training the model, the resulting figure contains all episodes shall be displaied.
cc @vmoens @nairbv