【问题标题】:Does %matplotlib qt works in google colab?%matplotlib qt 在谷歌 colab 中是否有效?
【发布时间】:2020-03-12 21:20:02
【问题描述】:

我在使用 matplotlib,发现 matplotlib 中有一些交互式绘图,我们可以通过鼠标光标旋转图形

%matplotlib qt 用于启用交互式绘图。在 jupyter notebook 中工作正常,但 google colab 显示错误 enter image description here

有没有可能它也可以在 google colab 中使用?

【问题讨论】:

    标签: python matplotlib google-colaboratory


    【解决方案1】:

    没有。没有机会。 %matplotlib qt仅当您在使用它的同一台机器上执行笔记本时才有效。 Colab 在远程服务器上执行。 你可以试试%matplotlib notebook这个在notebook里面创建互动情节。

    【讨论】:

      猜你喜欢
      • 2021-01-01
      • 1970-01-01
      • 2019-01-26
      • 2018-11-08
      • 2020-09-13
      • 2021-05-14
      • 1970-01-01
      • 1970-01-01
      • 2023-02-17
      相关资源
      最近更新 更多