1.在linux 通过ipthon 生成密码
c.NotebookApp.allow_root =True
c.NotebookApp.ip = '*'
c.NotebookApp.allow_remote_access = True
c.NotebookApp.port = 8888
c.NotebookApp.open_browser = False
c.NotebookApp.password = 'sha1:a7716c11c41e:02e85174fe4bbeb168f2a5551d17169ad04723a2'
如果想使用Chrome启动
import webbrowser webbrowser.register("chrome",None,webbrowser.GenericBrowser(u"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe")) c.NotebookApp.browser = 'chrome'