【发布时间】:2019-12-20 14:26:19
【问题描述】:
我正在使用 Visual Studio Code 的 Microsoft Python 扩展,它自 6 月起支持带有 Python 交互窗口的绘图查看器。我正在尝试(没有成功)在 vscode 中使用 matplotlib 制作交互式绘图,就像在 Jupyter Notebook 中使用代码顶部的魔术代码 %matplotlib notebook 一样,以便使用数据缩放光标和数据跟踪器作为我在下一张图片中展示:
https://i.imgur.com/b4mLgex.jpg
有没有办法使用绘图查看器来显示交互式绘图?
【问题讨论】:
-
matplot 有函数ion() - "Interactive ON"。
-
看起来 VS studio 的 jupyter 服务器应用不支持
%matplotlib notebook。 -
@furas 我试过那个功能,没用
-
似乎并非所有工具都准备好使用此功能。
标签: python matplotlib visual-studio-code jupyter-notebook