Enabling Windows Subsystem For Linux

Go to Windows store and search for “Ubuntu 18.04 TLS” and install it

If you read down the description you will see this instruction.

I will follow the first line 🙂

Search for “Windows Features” in windows 10. And click on “Turn Windows features on or off”

Select windows subsystem for linux and press OK.

Once done reboot system as it says.

After restart Ubuntu 18.04 will be shown in the start menu

Click on it. It will start with installation message

You will be asked to enter the user name and password which will be setup for your subsequent logins

I am into linux shell now.. Wow.. I tried vim editor.. Works perfect.

If you want to navigate to c:\ type “cd /mnt/c” in the command prompt.

Running Jupyter with Dotnet Core C#

This one is the follow up of my previous blog where installing jupyter is shown. In here we will install modules to run dotnet core on Jupyter.

Open Anaconda Powershell prompt and type “dotnet tool install -g dotnet-try”

You should see the messages like below

Then type “dotnet try jupyter install”

Now when you open Jupyter notebook you will see C# and F# under new menu

You can click on C# and create a class and run as shown below

display(p) prints the values. Happy coding..

Setting up Jupyter with Python

Jupyter is an easy to use interface for Python programming. You could have a notebook of python source code. Recently I got to know we could use Jupyter for .net core. That is for another blog.

To start with download Anaconda. I am using 64 bit version 3.7 on Windows 10

once installation is done, search for Jupyter. Right click on Jupyter and select “open file location”.

Copy Jupyter notebook icon and paste it on the desktop

Go to the desktop and right click on the icon and select “Properties”

Now you will see the properties screen as shown below. Look for the %USERPROFILE% in the target

Replcae %USERPROFILE% with the directory where you want to store your Jupyter notebooks. In my case I have set it to “E:\PythonTests”. Press OK once you have set the location of your Jupyter notebook.

Double click on the icon. It will bring up the browser interface as shown below

Click on New –> Python 3

Type in print(“Hello world”) inside the box and press Run button. You should see “Hello world” printed

So that is our first Hello world python program written on Jupyter notebook