Skip to content
jupyter notebook
2025年3月13日 root

安装运行

bash
pip install notebook

配置

bash
nano ~/.jupyter/jupyter_notebook_config.py
py
c.NotebookApp.ip = '0.0.0.0' # listen on all IPs 运行所有设备登录
c.NotebookApp.token = ''     # disable authentication 免密码登录
c.NotebookApp.allow_origin = '*' # allow access from anywhere
c.NotebookApp.disable_check_xsrf = True # allow cross-site requests
c.NotebookApp.port = 8888
c.NotebookApp.tornado_settings = { 'headers': { 'Content-Security-Policy': "frame-ancestors * 'self' " }}  # iframe

运行

bash
jupyter notebook

Last updated: