1. open a terminal and type > "jupyter notebook --generate-config"
2. type> "jupyter notebook password ", and type your password twice.
3 open the file ~/.jupyter/jupyter_notebook_config.json , and copy "sha:sdfafefsfesfsefsefesff"
4 modify ~/.jupyter/jupyter_notebook_config.py, modify the terms below. delete the pound(#) ahead of these terms
c.NotebookApp.ip='*'
c.NotebookApp.password = u'sha:ce...密文'
c.NotebookApp.open_browser = False
c.NotebookApp.allow_remote_access = True
c.NotebookApp.port = 8839 //not same as 8888