Halo
发布于 2023-02-14 / 137 阅读 / 0 评论 / 0 点赞

jupyter notebook

安装运行

pip install notebook

配置

nano ~/.jupyter/jupyter_notebook_config.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

运行

jupyter notebook

评论