jupyter / colaboratory

[deprecated] Jupyter CoLaboratory, goto google colab now
https://colab.research.google.com
BSD 3-Clause "New" or "Revised" License
740 stars 111 forks source link

Matplotlib does not display in latest Chrome Beta (not using NaCl) #81

Closed Matthalp-zz closed 10 years ago

Matthalp-zz commented 10 years ago

Using IPython 2.2

Input: import matplotlib.pyplot as plt import numpy as np x = np.linspace(0, 3np.pi, 500) plt.plot(x, np.sin(x*2))

Output: [<matplotlib.lines.Line2D at 0x10f645f90>]

kayur commented 10 years ago

@Matthalp that doesn't sound good. Do you have an image? Does it work with non-beta? Do you have errors in the Javascript console?

Matthalp-zz commented 10 years ago

I have this problem on both the beta and non-beta.

Here is a link to the doc on my Google Drive (read-only): https://drive.google.com/file/d/0B1c2mn7m1jx3SE5MamQ0dkRKOW8/edit?usp=sharing

And screenshot of the browser with the JavaScript console (Googling it brings up a IPython issue on GitHub that suggests it's not relevant to this issue but could be wrong, link: https://github.com/ipython/ipython/issues/4145): screen shot 2014-08-09 at 12 46 15 pm

Carreau commented 10 years ago

You didn't used %matplotlib inline.

Envoyé de mon iPhone

Le 9 août 2014 à 18:50, Matthalp notifications@github.com a écrit :

I have this problem on both the beta and non-beta.

Here is a link to the doc on my Google Drive (read-only): https://drive.google.com/file/d/0B1c2mn7m1jx3SE5MamQ0dkRKOW8/edit?usp=sharing

And screenshot of the browser with the JavaScript console (Googling it brings up a IPython issue on GitHub that suggests it's not relevant to this issue but could be wrong, link: ipython/ipython#4145):

— Reply to this email directly or view it on GitHub.

Matthalp-zz commented 10 years ago

This fixed the problem for me. @kayur @Carreau Thank you!