jupyter lab在瀏覽器打開時空白

      Jupyter lab是jupyter notebook的升級版,因此,想體驗一下Jupyter lab的界面。在Anaconda上運行jupyter lab後,默認打開IE瀏覽器,IE瀏覽器打開時,一片空白

      在網上搜索後,初步判斷是瀏覽器的問題,改用搜狗瀏覽器打開。

      在jupyter_notebook_config.py的文件中添加如下內容:

c.NotebookApp.open_browser = True

import webbrowser

webbrowser.register("SogouExplorer",None,webbrowser.GenericBrowser(u"C:\Program Files\SogouExplorer\SogouExplorer.exe"))

c.NotebookApp.browser = 'SogouExplorer'

      再次在Anaconda上運行jupyter lab,問題解決。

      參考資料:

      [1]  jupyter notebook瀏覽器打開空白

      [2]  修改jupyter lab/jupyter notebook默認打開文件夾和瀏覽器及創建jupyter lab的快捷方式

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