jupyter notebook 404错误

jupyter notebook 404请求错误


将jupyter部署到服务器后,发现无法新建文件

错误日志如图

尝试了以下方法:

  • 升级jupyter
  • 原先是pip安装,改为conda安装
  • nginx配置调试

最终错误定位在jupyter config文件的配置

错误日志中出现这样一句Blocking Cross Origin API request. Origin: http://evil.com/, Host: xxxxx怀疑是origin设置问题

打开jupyter_notebook_config.py文件
找到c.NotebookApp.allow_origin = ' '' '改为‘*’
保存退出 重新启动jupyter 成功

猜你喜欢

转载自blog.csdn.net/weixin_42042680/article/details/87488710
今日推荐