Skip to content
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

Output in cell disappears immediately after executing in google colab notebook #1914

Closed
SaurabhThakre opened this issue Mar 19, 2021 · 5 comments

Comments

@SaurabhThakre
Copy link

SaurabhThakre commented Mar 19, 2021

from matplotlib import pyplot as plt

x = [5, 2, 9, 4, 7]
y = [10, 5, 8, 4, 2]
plt.plot(x,y)
plt.show()

When I try to execute the above code in google colab notebook, its output appears for milliseconds and disappears immediately and does not remains. This behaviour only occurs when trying to plot the graph using matplotlib. But this does not happen when I use a print statement, the output does not disappear like the graph for the above plot.

colab_matplotlib

I have recorded and added this gif, which shows the above-described problem in my colab.

@craigcitro
Copy link
Contributor

Thanks for the report!

I can't seem to reproduce this, which makes me think one of two things may be in play:

  • previous code you've run in this notebook causing trouble; can you repro if you run just that code in a fresh notebook?
  • a chrome extension causing trouble; can you repro in an incognito window?

@SaurabhThakre
Copy link
Author

I have removed all my extensions from chrome and now it shows the output properly.
Some extension was causing this problem.
Thanks @craigcitro

@blois
Copy link
Contributor

blois commented Mar 19, 2021

If you are able to narrow down which extension caused the issue please let us know in case others run into this later. Thanks!

@SaurabhThakre
Copy link
Author

It was Urban VPN extension.

@Mouaadoussous
Copy link

@SaurabhThakre Thank you so much , i tried lot of solutions nothing worked ... until i removed urban VPN extension !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants