Most Linux distros come equipped with Python. Here we will assume a Debian based distro, primarily Ubuntu. We will be primarily using Python 3 in these sessions to it imperitive that you have it properly set up so you can follow along with the sessions. To check you Python version, run the following command in your bash shell:
python3 --version
If this shows a python version of the form 3.x.x
, congrats! You're done here.
Otherwise install Python 3 with the following command.
sudo apt install python3
You can also set your default Python version to be Python 3 to avoid invoking python3
instead of python
using the following command:
sudo apt install python-is-python3
Next, install Jupyter Notebook using the following pip command.
pip3 install notebook
You can run Jupyter Notebook from your terminal using the following command.
jupyter-notebook
Head over to anaconda.com and install the latest version of Anaconda. Make sure to download the “Python 3.9 Version” for the appropriate architecture.
To install Jupyter using Anaconda, just go through the following instructions:
Step 1: Launch Anaconda Navigator
Step 2: Click on the Install Jupyter Notebook Button
Step 3: Beginning the Installation
Step 4: Finished Installation
Step 5: Launch Jupyter
Make sure you have Homebrew Package Manager installed on your system. In case you do not, follow this resource for Homebrew installation.
Install Python 3.
brew install python3
Check if pip3 and python3 are correctly installed.
python3 --version
pip3 --version
Upgrade your pip to avoid errors during installation.
pip3 install --upgrade pip
Enter the following command to install Jupyter Notebook using pip3.
pip3 install jupyter
OR if you want to avoid all the hassle of installing Jupyter Notebook, you can use Google Colab.
Just open up your Google Drive go to New and create a new Google Colaboratory Notebook.
Usually Python 3 ships with NumPy and Matplotlib. But in case you don't have them, you can install them using the following commands:
pip3 install numpy
pip3 install matplotlib