1. 生成配置文件 jupyter notebook --generate-config 2. 创建密码 使用python中的passwd()创建密码,终端输入ipython打开ipython并输入: In [1]: from notebook.auth import passwd In [2]: passwd() Enter password: ****** Verify password: ****** Out [2]: 'sha1:...' 复制Out [2] 显示的密码('sha1:...' 包括引号)。 3. 修改jupyter notebook的配置文件 打开配置文件 Windows操作系统在C:/Users/用户/[用户名]目录下 vim ~/.jupyter/jupyter_notebook_config.py 在该文件中做如下修改或直接在文件尾端添加: c.NotebookApp.allow_remote_access = True #允许远程连接 c.NotebookApp.ip='*' # 设置所有ip皆可访问 c.NotebookApp.pas....