【问题标题】:Is there any way to show interactives plots in the plot viewer with vscode?有没有办法用 vscode 在绘图查看器中显示交互式绘图?
【发布时间】: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


【解决方案1】:

我是这个工具的开发者。目前绘图查看器只是一个原始的 png / svg 查看器,不支持交互式绘图。如果您想就此提出问题,可以在我们的 GitHub 上: https://github.com/Microsoft/vscode-python

【讨论】:

  • 谢谢,我会这样做的。
猜你喜欢
  • 2020-07-22
  • 2017-05-03
  • 1970-01-01
  • 2013-07-03
  • 1970-01-01
  • 2020-07-02
  • 2018-02-11
  • 2016-11-28
  • 1970-01-01
相关资源
最近更新 更多