简体   繁体   中英

mpld3 is not showing graph in Colab

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.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM