從 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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章