python-3.x - Docker 上的 Jupyter 内核网关中的 RuntimeError

标签 python-3.x docker jupyter-notebook

当我尝试在 Docker 上执行 Jupyter Kernel Gateway 时,出现以下错误:

2017-08-03T11:00:51.732015249Z [KernelGatewayApp] 内核关闭:27351426-2078-4101-b3f3-86da41d6e141
2017-08-03T11:00:51.735665285Z Traceback(最近一次通话最后):
2017-08-03T11:00:51.735690921Z 文件“/opt/conda/bin/jupyter-kernelgateway”,第 11 行,在
2017-08-03T11:00:51.735699387Z sys.exit(launch_instance())
2017-08-03T11:00:51.735705691Z 文件“/opt/conda/lib/python3.4/site-packages/jupyter_core/application.py”,第 267 行,在 launch_instance
2017-08-03T11:00:51.735711902Z 返回 super (JupyterApp,cls).launch_instance(argv=argv,**kwargs)
2017-08-03T11:00:51.735717618Z 文件“/opt/conda/lib/python3.4/site-packages/traitlets/config/application.py”,第 591 行,在 launch_instance
2017-08-03T11:00:51.735723686Z app.initialize(argv)
2017-08-03T11:00:51.735731330Z 文件“/opt/conda/lib/python3.4/site-packages/kernel_gateway/gatewayapp.py”,第 212 行,初始化
2017-08-03T11:00:51.735737468Z self.init_configurables()
2017-08-03T11:00:51.735742836Z 文件“/opt/conda/lib/python3.4/site-packages/kernel_gateway/gatewayapp.py”,第 241 行,在 init_configurables
2017-08-03T11:00:51.735748923Z self.kernel_pool = KernelPool(self.prespawn_count, self.kernel_manager)
2017-08-03T11:00:51.735755996Z 文件“/opt/conda/lib/python3.4/site-packages/kernel_gateway/services/kernels/pool.py”,第 27 行,位于 初始化
2017-08-03T11:00:51.735762895Z kernel_id = kernel_manager.start_kernel(kernel_name=self.kernel_manager.parent.seed_notebook['metadata']['kernelspec']['name'])
2017-08-03T11:00:51.735772782Z 文件“/opt/conda/lib/python3.4/site-packages/kernel_gateway/services/kernels/manager.py”,第 71 行,在 start_kernel
2017-08-03T11:00:51.735779471Z 引发 RuntimeError('错误播种内核内存')
2017-08-03T11:00:51.735785063Z RuntimeError:播种内核内存时出错

最佳答案

此错误是由于相应笔记本中的编译错误造成的。

为了尝试,我评论了所有内容,并用 GET 请求注释了一个单元格。

有效!

关于python-3.x - Docker 上的 Jupyter 内核网关中的 RuntimeError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45482450/

相关文章:

python - 在 if 或 while 语句 python 中打印一次 uniqe 变量

docker - kubernetes-GCP-无法连接到https://collector.newrelic.com

Docker 编排工具

docker - 使用 NFS 在主机之间共享 docker 镜像

python - 如何将 R conda env 连接到 jupyter notebook

python - 将标题的文本文件读入字典

python - 从 HTML 中提取脚本标签内的字符串

python - 使用 VS Code Python 扩展登录到受密码保护的远程 Jupyter URI(URI 中没有 token )

windows - 导入错误 : No module named 'thinc.about'

jupyter - 从笔记本中保存 Jupyter 笔记本的 html