jupyter notebook 中代碼提示 tooltip 不能用問題

  • 打開 jupyter notebook
  • 查看快捷鍵 Shift-Tab: tooltip,然後我在編輯模式下,不斷地按就是不能彈出提示
  • 查看終端 log,發現 [W 11:08:54.455 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20200315110835 (::1) 16.19ms referer=http://localhost:8890/notebooks/math/%E6%9C%80%E5%B0%8F%E4%BA%8C%E4%B9%98%E6%B3%95.ipynb 這一句,
  • 安裝 ipywidgets
conda install ipywidgets

然後配置 ~/.jupyter/nbconfig/notebook.json

{
  "load_extensions": {
    "jupyter-js-widgets/extension": true
  }
}

或者

pip3 install jupyter-js-widgets-nbextension
pip3 install nbextensions

重新運行jupyter Notebook

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