Jupyter notebook 有没有办法在Google Colab上使用变量检查器?

Jupyter notebook 有没有办法在Google Colab上使用变量检查器?,jupyter-notebook,google-colaboratory,Jupyter Notebook,Google Colaboratory,这是我第一次在Google Colab上工作。 是否可以在Google Collab中使用变量检查器? 如果是,怎么做 谢谢。是的。我就是这样做的 将此代码放入一个代码单元并运行它 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.

这是我第一次在Google Colab上工作。 是否可以在Google Collab中使用变量检查器? 如果是,怎么做


谢谢。是的。我就是这样做的

将此代码放入一个代码单元并运行它

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 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 Colab,variable explorer inspector visualize

有一种方法,但它消失了你可以尝试自己制作,看有一种方法,但它消失了你可以尝试自己制作,谢谢!非常感谢!