Jupyter Notebook is an open source web application that allows you to create and share documents containing live code, equations, visualizations and narrative text. It can be used as a tool for interactively developing and presenting data science projects. In most cases, it is used with scripting languages such as Python and R. However, it can also be used for compiled languages such as. NET programming language, Go and Julia. For a list of supported programming languages, refer to the Jupyter Kernel page on GitHub.
This article explains what to do on Windows 10. NET core programming language setup steps of Jupyter notebook. It is based on support for C#, F#, and PowerShell. NET Notebook Preview 2. This article also provides several C# examples that demonstrate how to use DataFrame and Charts.
Microsoft.net core
.net core is an open source, cross-platform software framework that runs on a variety of operating systems, such as Windows, Linux, and macOS. It is a project of the.NET Foundation and is released under the MIT and Apache 2 licenses.
The first release (.NET Core 1.0) was released on June 27, 2016. As of this writing, the current version was released on November 10, 2020. The.net 5.0. In.NET 5.0, “Core “has been removed from the name to emphasize that it is. NET future major implementation, it than. NET Core or. The NET Framework supports more types of applications and more platforms.
Currently, Microsoft supports. NET Core 2.1.NET Core 3.1. NET 5.
Next, I’ll demonstrate for Windows 10. NET Core 3.1 Steps for setting up Jupyter Notebooks.
Steps for setting up Jupyter Notebooks for.net
1. Install Python
Python packages can be found on the Python website. It supports many operating systems such as Windows, Linux/Unix, and Mac OS X.
Download the Windows version and install it on your machine. In this article, Python 3.9.4 64bit was used. You will need to verify the installation PATH, or select the Add Python 3.9 to PATH option to Add the Python installation PATH to the PATH environment variable. However, the Add Python 3.9 to PATH option can introduce version conflicts between installed Python versions. If you have multiple versions of Python installed on your machine, be wary of this option.
After installation, open the Windows command prompt to verify the version of Python **(Python –version**).
You can install different Python distributions, such as Anaconda. Please refer to the Anaconda website for more information.
2. Install the Jupyter notebook
Jupyter Notebook can be installed with the PIP command. Open a Windows command prompt and use the following command to install Jupyter Notebook.
python -m pip install --upgrade pip
python -m pip install jupyter
Copy the code
Then, run **”****Jupyter Notebook “** from the Windows command prompt to start the Jupyter notebook.
Currently, Jupyter Notebook only supports Python 3.
For different Python distributions, refer to the distribution website on how to install Jupyter Notebook.
3. Install.NET Core 3.1
You can download it from.net Core. NET Core 3.1.
After the installation is successful, run the dotnet — version command at the command prompt to verify the installation. NET Core version.
4. Install the dotnet-interactive Kernel
Jupyter notebook. NET relies on the microsoft.dotnet-interactive package, which is a command-line tool for interactive programming in C#, F#, and PowerShell, including support for Jupyter notebooks.
Run the following command at the command prompt to install Microsoft.dotnet-interactive.
Dotnet tool install --global microsoft.dotnet-interactive --version 1.0.155302Copy the code
Versions higher than 1.0.155302 are for NET 5.0.
Then, run the following command to add dotnet-interactive to the Jupyter notebook.
dotnet interactive jupyter install
Copy the code
Finally, run **” Jupyter Notebook “** from the Windows command prompt. Jupyter notebooks now support C#, F# and PowerShell programming languages.
C # example
You can refer to the following examples that show how to use C# in Jupyter Notebook.
- Start using C# DataFrame and xplot.plotly. This example demonstrates how to use the DataFrame and xplot.plotly libraries in the Microsoft.data. Analysis package to plot graphs.
- Start using Eikon Data API.net in Jupyter Notebook. This example demonstrates how to use the Refinitiv. NET Eikon Data API on Jupyter Notebook to retrieve the latest Data, historical Data, semiotics, and news. It uses the **EikonDataApi package to retrieve Eikon data and the Xplot.plotly ** package to chart.
The resources
1.En.wikipedia.org.2016.. NET Core – Wikipedia. [online] Available at: < en.wikipedia.org/wiki/.NET_C… Accessed 28 April 2021]. 2.Microsoft. n.d.. Five official NET Core and the.net support policy. [online] Available at: < dotnet.microsoft.com/platform/su… Email exchange with factcheck.org. 28 April 2021. 3.docs.microsoft.com.n.D. NET. [online] Available at: < docs.microsoft.com/en-us/dotne… Accessed 28 April 2021]. 4.Python.org.2021. Download the Python. [online] Available at: www.python.org/downloads/ [Accessed 28 April 2021]. 5. nuget.org N.D.M. Microsoft dotnet -interactive 1.0.221505. [online] Available at: HTTPS: [[] (HTTP: / / www.nuget.org/packages/Mi / / www.nuget.org/packages/Microsoft.dotnet-interactive/… 28 April 2021]. 6.Naggaga, M., 2020.. NET Interactive is here! 2 | | the.net Notebooks Preview the.net Blog. [online]. NET Blog. Available at: < devblogs.microsoft.com/dotnet/net-… Accessed 28 April 2021]. 7.Docs.microsoft.com. n.d.What’s new in .NET 5.[online] Available at: The < docs.microsoft.com/en-us/dotne…
Accessed 28 April 2021].
The theme.
.net c#, jupyter notebook, powershell, c#, f#, tutorial, python
The views expressed by DZone contributors are their own.