jupyter notebook 浏览器无法访问

[W 00:19:00.741 NotebookApp] No web browser found: could not locate runnable browser.

解决办法:

ipython

from IPython.lib import passwd
passwd() #得到加密后的hash
exit
jupyter notebook --generate-config
vim ~/.jupyter/jupyter_notebook_config.py

c.NotebookApp.ip = '*'
c.NotebookApp.allow_root = True
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
c.NotebookApp.password = u'sha1:...' #输入上面加密后得到的密文
c.ContentsManager.root_dir = '/root'

如果还是无法访问添加
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 端口号 -j ACCEPT


你可能感兴趣的:(机器学习,机器学习)