简体   繁体   English

如何使用在主机机器中运行的 Jupyter Notebook 中运行在 docker 容器中的 ipython 内核?

[英]How to use ipython kernel running in docker container from Jupyter Notebook running in host machne?

I want to use ipython kernel inside a docker container from Jupyter Notebook running in my host machine.我想在我的主机上运行的 Jupyter Notebook 的 docker 容器中使用 ipython 内核。

I know I can use the kernel by installing Jupyter into the container, but it is not I want to do.我知道我可以通过将 Jupyter 安装到容器中来使用内核,但这不是我想做的。 That's because I'm using some extensions of Jupyter Notebook (eg vim), and I want to use them when I use the kernel inside docker container.那是因为我正在使用 Jupyter Notebook 的一些扩展(例如 vim),并且我想在使用 docker 容器内的内核时使用它们。

What should I do?我该怎么办?

看看这个 GitHub repo ,你可以在那里找到如何在 Docker 中运行 IPython 的完整示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM