This post contains prep instructions for this Friday’s methods workshop:
“How I Learned to Let Go and Love Python: An R Story” Friday, Sep 20, 2:30–4:00 PM. IAB 707 (LRR).
It’s not always easy to let go, but in this case the reward far outweighs the risk! The purpose of this session is to introduce the ways in which Python supplants or supplements R in political science research. We will configure Python and Jupyter Notebook on your system, review package management, and collaborate to rewrite a commonly used R script in Python.
- Install Homebrew if you’re on a Mac, or Chocolatey if you’re on a PC by following the instructions at their homepages.
- Install the Python distribution. This will also install Python’s package manager,
brew install python python3.
choco install python python3(run as administrator).
pipto install jupyter notebook.
pip3 install jupyter.
pip install jupyter(run as administrator).
Booting Jupyter notebook
To boot the notebook, simply:
jupyter notebook (on PC it is sometimes
jupyter notepad) from the command line.