Skip to content
C# kernel in Jupyter Notebook
Jupyter Notebook Other
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
Exam_Ref_70-483_Programming_in_C#_2nd_Edition Adding rest of material Dec 28, 2018
travis-ci Fixing path to Dockerfile Dec 28, 2018
.gitignore Changing all to Linux LF endings Dec 24, 2018
.travis.yml Specify folders in travis and Makefile Dec 26, 2018
Dockerfile Added conversion to .ipynb from .md Dec 28, 2018
Example_Jupyter_Notebook_with_C#.ipynb Making simpler Dec 26, 2018 Small typo fix in README Dec 29, 2018
notebooks_build.cmd Small fix for build files Dec 28, 2018
notebooks_run.cmd Adding info to run command Dec 28, 2018

csharp-notebook Build Status

csharp-notebook is a community maintained Jupyter Docker Stack image. It makes i possible to try C# in Jupyter Notebooks.

Launch on mybinder

Try the Jupyter Notebooks online with this link. No installation is needed.
(It can take up to 5 min to prepare the image).


Examples of Jupyter Notebooks

Additional material is more than welcome! Please add by sending a GitHub Pull Requests.

Exam Ref 70-483 Programming in C#, 2nd Edition

The sample code has been converted to more than 200 Jupyter Notebooks.

Docker Hub

Docker Pull Command for Docker image with C# kernel installed and example Notebooks.

docker pull tlinnet/csharp-notebook:notebooks

Docker Pull Command for Docker image with C# kernel installed with no Notebooks.

docker pull tlinnet/csharp-notebook


Git Pull Command, manual Docker build and run on Windows 10.

git clone
cd csharp-notebook


iCsharp kernel

This Dockerfile is made possible by the work of

Install guides from

Jupyter Docker Stacks - Community Stack version

This project is developed with the helpful guide of Jupyter Docker Stacks. The base container is jupyter/minimal-notebook and this Community Stack is setup via the guide.

The setup has been slightly modified from the standard cookiecutter settings.


    • Builds -> Configure Automated Builds
      • AUTOTEST : Off
      • REPOSITORY LINKS : Enable for Base Image
      • Build rules:
        • Source: master
        • Docker Tag: latest
        • Dockerfile location : Dockerfile_build
        • Build Context : /travis-ci
        • Autobuild : On
        • Build Caching: On
    • Uses /travis-ci/hooks/post_push (See setting for Build Context location)

    • General
      • Build pushed branches : On
      • Build pushed pull requests : On
      • Limit concurrent jobs : Off
    • Auto cancellation
      • Auto cancel branch builds : Off
      • Auto cancel pull request builds : Off

Known issues in C# Jupyter Notebooks

  • Main() is not called automatically. Has to be called manual. Remember 'public' in the function definition.
  • Console.ReadKey() should not be used.
  • using static System.Math; When importing Math, static has to included in the using command
You can’t perform that action at this time.