从 IPython Notebook 中的日志记录模块获取输出 - Get Output From the logging Module in IPython Notebook

问题:

When I running the following inside IPython Notebook I don't see any output:当我在 IPython Notebook 中运行以下命令时,我看不到任何输出:

import logging
logging.basicConfig(level=logging.DEBUG)
logging.debug("test")

Anyone know how to make it so I can see the "test" message inside the notebook?任何人都知道如何制作它以便我可以看到笔记本内的“测试”消息?


解决方案:

参考一: https://en.stackoom.com/question/1GpKi
参考二: https://stackoom.com/question/1GpKi
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章