4

I'm working in google colab and using mpld3 to plot graphs. Everything was working fine till last time but now colab is not showing graphs when I use mpld3. I get a graph when I simply use pyplot and don't use mpld3. Any idea what might be the issue?

When I do

%matplotlib inline
import mpld3
import matplotlib.pyplot as plt
mpld3.enable_notebook()

plt.plot(range(10))
plt.show()

I've also tried mpld3.display() instead of plt.show(), but that also doesn't seem to work.

I don't get any output. Output cell is empty.

user_3pij
  • 1,334
  • 11
  • 22

1 Answers1

0

Try !python -m pip install "git+https://github.com/javadba/mpld3@display_fix"

via https://colab.research.google.com/drive/1KGzHsF7i3vQ49XxV7R31nsRZxhOGATr4#scrollTo=bcyd5ZmFMy5v

ptigas
  • 45
  • 1
  • 6