1.生成配置文件 jupyter notebook --generate-config 2.生成密码 打开iPython,创建一个密文的密码: In [1]: from notebook.auth import passwd In [2]: passwd() Enter password: Verify password: Out[2]