Anyone who has used Python has probably used Jupyter Notebook. Using Jupyter Notebook is much more useful than simply storing or sharing commented source code, as it allows you to test various simple code blocks for playground purposes or create tutorial documents that you can directly modify and execute.
Now, you can create notebooks with C# code in Jupyter Notebook. Assuming that you already have Anaconda/Miniconda environment or Python, Jupyter Notebook, and .Net development environment installed on your PC, you can simply execute the following command line commands in order.
dotnet tool install --global Microsoft.dotnet-interactive
dotnet-interactive jupyter install
Now, if you run Jupyter notebook, you will see C# in the new notebook creation.
Now you can create notebooks with C# code as shown below.
ยฉ 2025 juniyunapapa@gmail.com.