From Zero to Python
This guide walks you through the steps of getting set up to use Python in MUSA 550. It provides links for downloading and installing Python, getting all of the Python packages, you’ll need for the course, launching your first Jupyter notebook, and using the notebook to write your own Python code.
Steps
- Download and install Python [Instructions]: We’ll be
using the
conda
package manager to install Python and manage dependencies. It comes in two flavors: Anaconda and Miniconda, but I recommend using Miniconda because the full Anaconda download will take up several GB of space on your computer. - Create your first Python environment
[Instructions]:
The
conda
application will allows us to easily install new Python packages and keep track of which ones we’ve installed. I’ve put together a list of the packages we’ll need in this course (a group of packages is known as an environment inconda
-speak). Note that you’ll be using the command line (either the Anaconda Prompt in Windows or Terminal app in MacOS) to runconda
and create your environment. More info on runningconda
commands from the command line is available here. - Activate the course’s environment
[Instructions]:
Once you create your new environment and install of the Python packages, you
need to tell
conda
to activate it (moreconda
-speak) so that you can actually use the packages. - Launch your first Jupyter notebook [Instructions]: With Python set up, we can launch a Jupyter notebook server, open up a new notebook, and start doing some data analysis with Python!
Note
To better familiarize yourself with the conda
package manager, I encourage
you to go through the Conda User Guide as well.