How to Install Virtual Environments in Jupyter Notebook in WSL2
By: David Littlefield
Tags: Deep Learning, Programming, Machine Learning, Artificial Intelligence, Data Science

Glossary:

The Shell is an interpreter that presents the command-line interface to users to let them interact with the kernel. It lets them control the computer using commands entered from a keyboard. It also translates the commands from the programming language into the machine language for the kernel.

[Return]

The Interpreter is a program that reads through programs that are written in human-readable programming languages and executes the instructions from top to bottom. It translates each instruction to a machine language the

hardware can understand, executes it, and proceeds to the next instruction.

[Return]

The Command-Line Interface (CLI) is also known as the terminal or console. It’s a program that accepts text input from users to execute commands on the operating system. It lets users configure the computer, install software, and access features that aren’t available in the graphical user interface.

[Return]

The Kernel is the program at the core of the operating system that controls everything in the system. It’s responsible for memory management, process management, disk management, and task management. It also facilitates communication between the programs and hardware in machine language.

[Return]

The wslvar command is used to access all the environment variables from Windows 10 in WSL2. It specifies the environment variable but it doesn’t require the variable name to be enclosed with percentage signs. It can also be combined with command substitution to store the output in a variable.

[Return]

The Variable is the container that’s used to store different types of values. It can assign or update a value by placing an equals sign between the specified variable name and value without space around it. It can also reference the stored value by placing the dollar sign in front of an existing variable name.

[Return]

The Environment Variable is a variable that’s created and maintained by the computer. It helps programs know where to install files, look for programs to run, and find user profile and system settings. It can also be accessed by programs and the command-line interface from anywhere on the computer.

[Return]

Git is a version control system that’s used to track changes that are made to the source code over time. It’s designed to handle projects of all sizes and to allow multiple people to make changes to the same repository. It can also revert the source code to specific versions from the history of the repository.

[Return]

The Submodule is a repository that’s nested inside of a different repository as a subdirectory. It contains a copy of all the files from a specific version of the repository at a particular point in time. It also contains a copy of all the submodules within the submodule that are considered its dependencies.

[Return]

The Site-Packages is a directory that’s located in the system-wide Python installation directory. It’s the default path that package managers use to

install third-party binary packages. It’s also one of the paths that Python uses to locate and import binary packages that are already installed.

[Return]

The Dependencies are the additional binary packages that a specific binary package needs to work properly. They’re relied on by nearly every package that’s distributed in Linux. They’re also automatically located, downloaded, and installed when a package is installed using the Linux package manager.

[Return]

The PATH is an environment variable that contains the list of directories the computer uses to find executable files. It looks for the requested executable file in each directory on the list from top to bottom. It also stops searching once it finds a matching executable file and runs the program or command.

[Return]

The Binary Package is an archive file that contains the files and directories needed to make its containing program work as expected. It’s stored in a repository that contains other packages for a specific Linux distribution. It also needs the Linux package manager to download, extract, and install it.

[Return]

The Source command is used to execute commands from the specified script within the current shell. It loads the functions, variables, and configuration files into the shell which are available to the user after the completion of the script. It also passes any arguments as positional parameters to the script.

[Return]

The Upgrade (U) option can be used with the pip install command to install the latest version of the specified binary package that’s already installed on the computer. It can also be used to upgrade the pip package manager itself. It installs the latest version by default but it can also install specific versions.

[Return]

The Requirements File is a configuration file that’s used to automatically install the specified binary packages with the specified version. It places each binary package and version on separate lines. It can also be named something else and saved somewhere else but its path must be specified.

[Return]

The Weight is a random number that’s multiplied by an input to transform data that’s passed between two nodes in the hidden layers of an artificial neural network (ANN). It’s a learnable parameter that’s used to determine how much influence a feature has on the prediction. It’s also updated and optimized during training to increase the accuracy of future predictions.

[Return]

The Kernel is a program that executes the code from code cells and displays the output in Jupyter Notebook. It maintains the state across time, between code cells, and regardless of the order that the code cells are run. It can also be used to install different programming languages into Jupyter Notebook.

[Return]