启动jupyter notebook时,报错Error: cannot open display: localhost:10.0

在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—隧道,设置为如下:

启动jupyter notebook时,报错Error: cannot open display: localhost:10.0_第1张图片

若还是不行,可能时没安装Xmanager
根据xshell选择Xmanager版本,下载后根据引导程序安装,安装完成后,打开Xmanaget,界面如下:

这时在去xshell中输入jupyter
notebook即可打开界面,如下所示:

启动jupyter notebook时,报错Error: cannot open display: localhost:10.0_第2张图片

这时在去xshell中输入jupyter notebook即可打开界面,如下所示:

启动jupyter notebook时,报错Error: cannot open display: localhost:10.0_第3张图片

稍等会儿,自动打开jupyternotebook的界面如下:

启动jupyter notebook时,报错Error: cannot open display: localhost:10.0_第4张图片
搞定!

你可能感兴趣的:(启动jupyter notebook时,报错Error: cannot open display: localhost:10.0)