这是我第一次在Google上工作。在Google中可以使用变量检查器吗?如果是,怎么做?
谢谢。
发布于 2020-11-27 11:09:40
更新:截至2022-02-22,Colab拥有自己的可变检验员.您可以从左侧面板访问它。
是。我就是这样做的。
将此代码放入一个代码单元格中并运行它。
from google.colab import output
#I don't know why nbextensions don't work with python3.6
with output.temporary():
!pip install --upgrade git+https://github.com/Kreijstal/colab_inspector.git
!python2.7 -m pip install --upgrade git+https://github.com/blois/colab_inspector.git #yes, really.
!jupyter nbextension install --py inspector
import inspector
# open a scratch cell (Ctrl+Alt+N)
# run there
# inspector.watch_globals()
打开划痕单元格(Ctrl+Alt+N)
在上面,跑
inspector.watch_globals()
当您在左边编写代码时,您将看到右边自动更新的变量。你甚至可以扩充字典和其他东西。
参考文献:
关键词: Google,可变资源管理器检查器可视化
https://stackoverflow.com/questions/63392877
复制相似问题