To get started, check-out the git repository with the exercise:
git clone ttps://github.com/ASvyatkovskiy/PythonWorkshop
cd PythonWorkshop
If you do not have git or you do not wish to install it, just download the repository as zip, and unpack it:
wget https://github.com/ASvyatkovskiy/PythonWorkshop/archive/master.zip
#For Mac users:
#curl -O https://github.com/ASvyatkovskiy/PythonWorkshop/archive/master.zip
unzip master.zip
Then change to the the repository folder.
To install Python3 for this course got to: https://www.python.org/downloads/release/python-351/ Scroll down to the "Files" section and select file which best matches your OS. Once finished with the installation, test it by typing:
python3
in the command line, it will open up a Python REPL, printing out the details on the version of Python.
Two package managers are going to use for this course: Anaconda and pip3. These package managers are also available on Princeton clusters.
If you have not installed Anaconda yet, please go to this page: https://www.continuum.io/downloads and select the version for Python 3 compatible with your operating system.
Type:
conda --help
to confirm the installation is succesful.
Note: pip3 should be a part of the stock install for Python > version 3.4.
Once this is installed, create an isolated Anaconda nevironment for today's course, and install ipython notebook in it:
conda create -n PythonWorkshop python=3.5.1 anaconda
source activate PythonWorkshop
conda install --name PythonWorkshop ipython-notebook=4.0.4
ipython3 notebook
After the notebook is opened, navigate to the workshop folder and open the 0.Setup.ipynb from the browser window.