我想用滑块https://plot.ly/python/sliders/重新创建这个情节图。使用colab的以下说明:Plotly notebook mode with googlecolaboratory。但是,滑块没有出现。代码如下: import numpy as np from plotly.offline import download_plot
有没有人知道是否有一种方法可以通过编程来确定我们是在协作室中运行,而不是在“经典jupyter”中运行?在this great article about using Scala on Colaboratory之后,我尝试使用plotly。 然而,我遇到了this issue。其中一条评论建议,如果我们的代码可以检测到它正在Colaboratory中运行,那么可以应用一种通用的解决方案。 谢谢你的指点!
我正在尝试在Google Colab上的R笔记本中安装一个python库,为此我使用了'reticulate‘包: library(reticulate)
py_install("pandas") 但我得到的结果是这个错误: Error: could not find a Python environment for /usr/bin/python3 有没有解决这个错误的办法?