Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/secana/dotnet-interactive-docker
- Owner: secana
- License: apache-2.0
- Created: 2020-02-13T20:24:55.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-15T18:16:45.000Z (3 months ago)
- Last Synced: 2024-09-15T19:37:30.205Z (3 months ago)
- Topics: csharp, dotnet, fsharp, jupyter, jupyter-notebook, powershell
- Language: Dockerfile
- Size: 59.6 KB
- Stars: 24
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```