Windows Subsystem for Linux (WSL) Guide
Last updated
Last updated
This tutorial guides you through setting up Windows Subsystem for Linux (WSL) to run vBase samples.
Open PowerShell as Administrator: Right-click the Start button and select “Windows PowerShell (Admin)”.
Enable WSL: Type the following command into PowerShell and press Enter:
Enable VirtualMachinePlatform Feature: Type the following command into PowerShell and press Enter:
Restart your PC.
Download and Install a Linux Distribution: Go to the Microsoft Store, search for the Ubuntu Linux distribution, and install it.
Set WSL 2 as your default version: Open PowerShell as Administrator again and run:
Launch WSL: After installation, launch WSL from the Start menu. The first launch will take some time due to setup. You will be prompted to create a user account and password.
Note: The following steps assume you have WSL installed and are running commands in the open WSL console window.
Update and Upgrade Packages: Update your Linux package list and upgrade the packages by running:
Install Python3 and pip: Run the following command:
Install Jupyter Lab: Use pip to install Jupyter Lab:
Install Git: Run the following command to install git:
Create the vBase directory: Create the directory where you want to clone vBase repositories and switch to this directory by running:
Clone the Repository: Once you are in the directory where you want to clone the repository, run:
Navigate to the Repository Directory:
Run Jupyter Lab: Start Jupyter Lab by running:
This command will start Jupyter Lab and provide you with a URL (including a security access token) to access it from your browser.
Access Jupyter Lab: Copy the provided URL and paste it into your browser’s address bar to access Jupyter Lab.
Open a Notebook:
In Jupyter Lab, navigate through the file explorer to find the notebook you wish to open in the ~/validityBase/vbase-py-samples/samples
folder. Click on it to open and interact with the notebook.