使用IPython Interpreter无法让Spyder使用内联图

时间:2014-05-05 20:58:15

标签: python matplotlib ipython spyder

免责声明:我是Python + Spyder的新手,用于科学计算。

编辑:以下是我的工具版本:

Python 2.7.4
IPython 0.13.2
Spyder 2.1.13.1

我有一个问题让Spyder在线绘制人物。

这是我的来源:

def plot_stuff2():
    x = np.linspace(0, 3, 20)
    y = np.linspace(0, 9, 20)
    plt.plot(x, y)       # line plot    
    plt.plot(x, y, 'r*')  # dot plot
    plt.show()

使用IPython解释器在Console中运行时,该图显示在一个新窗口中并阻止该程序。我希望让这个数字在线创建并让程序继续。

如果我"启动一个新的IPython内核,我可以让IPython在线显示情节"并使用新创建的" IPython客户端"。但是,我无法在控制台上使用对象检查器作为源。我宁愿只使用IPython解释器进行内联绘图。

我对Interpreter的配置是#34; Excecute在当前的Python或IPython解释器"我选择了IPython控制台。

0 个答案:

没有答案