在Binder主持的Jupyter上设置C#和F#笔记本

时间:2019-11-12 13:31:02

标签: c# .net docker jupyter-notebook dockerfile

大家好,我想使用新的.NET Jupyter笔记本,所以我准备了一个dockerfile(是正确的)和一个NuGet.config文件(如此tuto)在git上的回购协议:

here the tuto

一切正常,但是当想要使用我的c#或f#内核时,由于它不存在而无法实现!

enter image description here

但是,如果我在docker映像上看到日志,则:

DockerFile

所以我的DockerFile是正确的,但是它无法加载到网络上,而且conda还告诉我,本地有很多可用的文件:

enter image description here

我的问题是Jupyter是否不允许您使用dotnet命令如何安装它?-从您的Docker映像中。 是的,但根本不行,因为它已成功构建但未加载?路径是否错误? 有没有办法告诉jupyter诸如“请看这里”之类的东西??

编辑

So if you check the place where it looks for kernel theres only one

因此,如果您检查要查找内核的位置,则只有一个。

要手动执行,但不确定...会话结束后会丢失吗?

1 个答案:

答案 0 :(得分:1)

好,我修复了,在活页夹文档上有一个明确的问题:

Here’s an example of a Dockerfile FROM statement that would work.

FROM jupyter/scipy-notebook:cf6258237ff9

The following examples would not work:

FROM jupyter/scipy-notebook
or
FROM jupyter/scipy-notebook:latest

因此,您需要指定一个具体的图像,而我使用的是最后更新的图像: enter image description here

这是必须启动dockerfile的方式(不一定?但是对我有用)

FROM jupyter/scipy-notebook:45f07a14b422

它将正确构建它并且没有问题,并且当您单击徽章时,它将显示: enter image description here