Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/secana/dotnet-interactive-docker

Docker container for .NET interactive
https://github.com/secana/dotnet-interactive-docker

csharp dotnet fsharp jupyter jupyter-notebook powershell

Last synced: about 1 month ago
JSON representation

Docker container for .NET interactive

Awesome Lists containing this project

README

        

# .NET Interactive Docker

[.NET Interactive](https://github.com/dotnet/interactive) allows the execution of .NET (C#, F#, PowerShell) in a [Jupyter Notebook](https://jupyter.org/).

This repository contains a Dockerfile to allow users to run a _Jupyter_ instance with a _.NET_ kernel without the need install the tools locally.

## Run .NET Interactive

**Windows**:

```powershell
docker run -it --rm -p 8888:8888 -v ${PWD}:/home/user/local secana/dotnet-interactive:latest
```

**Linux**:

```bash
docker run -it --rm -p 8888:8888 -v $(pwd):/home/user/local secana/dotnet-interactive:latest
```

This mounts your current working directory to the _local_ folder in the _Jupyter_ instance. The output will look like below. To open the notebook, click on the link in the last line.

```bash
...
[C 21:30:03.210 NotebookApp]

To access the notebook, open this file in a browser:
file:///home/user/.local/share/jupyter/runtime/nbserver-1-open.html
Or copy and paste one of these URLs:
http://193b0d4a4821:8888/?token=315f63eee4f367bfe27aa340547a0493f9880ff0521e78d8
or http://127.0.0.1:8888/?token=315f63eee4f367bfe27aa340547a0493f9880ff0521e78d8
```

## Build container

To build the container yourself, run:

```powershell
docker build -t jupyter .
```

An image is build locally with the name _jupyter_.

### Push to Docker Hub

```powershell
docker login
docker tag jupyter secana/dotnet-interactive
docker tag jupyter secana/dotnet-interactive:latest
docker tag jupyter secana/dotnet-interactive:2020.02
docker push secana/dotnet-interactive
```