Setup Python via miniconda and Jupyter Lab running; day 1 of a coding journal

Hello World! It's Yakimoto!

image.png

Join me, Yakimoto aspiring samurai coder, on the exciting and perilous journey of becoming a self taught programmer from humble beginnings to explore the world of programming. To start programming we need to setup our tools and system to run the tools we have chosen.

The Weapons (tools) of Choice

Today we will focus on the setting up Python! with miniconda for installing all the packages.

Follow the miniconda link provided above and download the appropriate version that will meet your needs and according to your OS (windows, here). I have chosen to use the 3.9 Python version. Once downloaded open and run the setup file. It will ask you several questions during the setup process, like would you like to connect miniconda to your PATH. I went with the recommended choices, like not setting miniconda to our PATH since we are going to use Jupyter Lab. After completing installation, window users simply need to go to the search on the task bar and type in anaconda, hit enter and the anaconda powershell prompt should open.

Now we are ready to setup Jupyter Lab by typing the following: conda install -c conda-forge jupyterlab and hitting enter. And that's it we have installed Jupyter Lab but before we open it let's create a virtual environment.

Virtual environments are away to organize and create unique environments for each of your coding projects, see this link for more info. To create our first virtual environment type conda create --name venv and to activate this environment typeconda activate venv. After hitting enter, you should see to the far left (base) should be replaced with venv.

Let's get some packages that might be useful in the future like scipy, pandas, tensorflow, and etc., by using this command: conda install scipy. For more info on installing packages follow this link. To check the packages installed in our current environment simply type conda list in the anaconda powershell prompt, which should return a list of packages installed.

Once we have installed all of the packages let's launch Jupyter Lab jupyter-lab and a new window in your browser should open. Now we can start coding in Jupyter Lab!

This is my first post so please be kind and if you have any suggestions please leave them in the comments.