在linux中安裝了Anaconda3,啟動jupyter notebook時,報錯:
Failed to open connection to “session” message bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead Running without a11y support!
Error: cannot open display: localhost:10.0
xdg-open: no method available for opening ‘file:///root/.local/share/jupyter/runtime/nbserver-14647-open.html’
解決辦法:打開目前會話視窗,點選屬性—連接配接—ssh—隧道,設定為如下:
若還是不行,可能時沒安裝Xmanager
根據xshell選擇Xmanager版本,下載下傳後根據引導程式安裝,安裝完成後,打開Xmanaget,界面如下:
這時在去xshell中輸入jupyter
notebook即可打開界面,如下所示:
這時在去xshell中輸入jupyter notebook即可打開界面,如下所示:
稍等會兒,自動打開jupyternotebook的界面如下:
搞定!