如果我在jupyter notebook
上运行此代码
from bqplot import pyplot as plt
import numpy as np
plt.figure(1, title='Line Chart')
np.random.seed(0)
n = 200
x = np.linspace(0.0, 10.0, n)
y = np.cumsum(np.random.randn(n))
plt.plot(x, y)
plt.show()
绘图显示,但如果我在Jupyter lab上运行相同的代码
VBox(children=(Figure(axes=[Axis(scale=LinearScale()), Axis(orientation='vertical', scale=LinearScale())], fig…
我该如何解决这个问题
嗨,只要在一个单元格中输入这个,然后运行它,它就会工作了
首先,运行这个
在Jupyter笔记本中
然后重新启动jupyter实验室。准备好了
相关问题 更多 >
编程相关推荐