1. 程式人生 > >jupyter notebook安裝rise庫無法顯示按鈕的解決方案

jupyter notebook安裝rise庫無法顯示按鈕的解決方案

使用jupyter notebook實現ppt的效果 今天無意在知乎上看到jupyter notebook可以完成ppt的效果,有幸來學習一波。 安裝的步驟

pip install RISE
jupyter-nbextension install rise --py --sys-prefix
jupyter-nbextension enable rise --py --sys-prefix

按照順序安裝在沒有報錯的情況下就說明rise庫是安裝完成了的。 但是在興奮之餘打開了jupyter 後並沒有看到提及的按鈕來完成ppt的分享,涼涼…

找問題 於是開始網上找解決答案,最後修改jupyter的預設瀏覽器就可行,把原來的IE瀏覽器更換成Google即可顯示按鈕。 修改步驟: 檢視jupyter的安裝位置:(cmd裡面)jupyter notebook --generate-config 找到 jupyter_notebook_config.py 記事本開啟進行修改

在# c.NotebookApp.browser = ‘’’’ 後加入下面語句塊: import webbrowser webbrowser.register(“chrome”,None,webbrowser.GenericBrowser(u"C:\ProgramFiles(x86)\Google\Chrome\Application\chrome.exe")) c.NotebookApp.browser = ‘chrome’ **注:**加粗的路徑為谷歌瀏覽器的路徑,自行調整 修改完預設瀏覽器後在把谷歌瀏覽器設定為預設瀏覽器,在此開啟即可顯示按鈕了 在這裡插入圖片描述