【问题标题】:ipywidgets jupyter notebookipywidgets jupyter 笔记本
【发布时间】:2017-07-02 03:51:16
【问题描述】:

我更新了我的 Anaconda 版本,当我尝试在 Jupyter 笔记本中使用 ipywidgets 时,我得到了几个图形而不是交互式图形:

%matplotlib inline
from matplotlib import pyplot as plt
import numpy as np

from ipywidgets import interact

def pinta(freq):
    x = np.linspace(0,3,200)
    y = x * np.sin(freq * x)

    plt.plot(x,y,'r')

interact(pinta, freq= (2 * np.pi, 2 * np.pi *10))

【问题讨论】:

    标签: python anaconda jupyter-notebook ipywidgets


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 2016-09-28
      • 2021-05-27
      • 2019-11-13
      • 2019-05-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多