[C#] Using C# in Jupyter Notebook

발행일: Feb, 2025
조회수: 0
단어수: 140

Table of Contents

Introduction

 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.


Installation

1. Install Microsoft.dotnet-interactive.

dotnet tool install --global Microsoft.dotnet-interactive

2. Execute the command to install the .Net kernel for Jupyter notebook.

dotnet-interactive jupyter install


Usage

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.

태그#Python#Jupyter Notebook#C##Anaconda#Miniconda#.Net#development environment

JUNA BLOG VISITORS

오늘0
Total0