Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.92 KB

small-factor-devices.md

File metadata and controls

53 lines (37 loc) · 1.92 KB

Using .NET Interactive on small factor devices

We support running .NET Interactive on small factor devices like Raspberry Pi and pi-top [4].

Installing .NET Interactive on a Raspberry Pi

We suggest running on a Pi 4 or above as the device provides more computing power. We provide a simple way to get the .NET Interactive tool and .NET Core SDK.

Open a terminal and run:

curl -L https://raw.githubusercontent.com/dotnet/interactive/master/tools/setup-raspbian.sh | bash -e

To start using the notebook experiences you can use Visual Studio Code or Jupyter.

Installing Visual Studio Code Insiders Notebook Experience

Install Visual Studio Code Insiders on your device. Next, get the .NET Interactive Notebooks extension.

Installing and configuring Jupyter on a Raspberry Pi

Open a terminal and run:

curl -L https://raw.githubusercontent.com/dotnet/interactive/master/tools/setup-raspbian-jupyter.sh | bash -e

Now you can activate the Jupyter virtual environment using the following command:

pi@raspberrypi:~ $ source ~/.jupyter_venv/bin/activate

The prompt in the active environment will look like this:

(.jupyter_venv) pi@raspberrypi:~ $ 

Finally, start JupyterLab by running:

(.jupyter_venv) pi@raspberrypi:~ $ jupyter lab --ip 0.0.0.0

You can also use Jupyter by running:

(.jupyter_venv) pi@raspberrypi:~ $ jupyter  --ip 0.0.0.0

Installing .NET Interactive on a piTop[4]

Follow the instructions on the piTop[4] .NET SDK repository.

Libraries and tools

The dotnet/iot provides a wide palette of device bindings that you can consume as NuGet packages.