jupyter notebook --generate-config
>>> from notebook.auth import passwd
>>> passwd()
Enter password:
Verify password:
c.NotebookApp.ip='*'
c.NotebookApp.password = u'sha1:db239b9c0c83:3a39xxxxxxxxxx
‘
c.NotebookApp.open_browser = False
c.NotebookApp.port =8888 #随便指定一个端口