TL,DR EDITION
Setting up your machine for data science in Python
Here's the short version of the commands without much explanation:
- Download Miniconda for Windows or for Mac OSX.
-
Install by either:
- Windows: Double click
Miniconda2-latest-Windows-x86_64.exe
and follow the instructions - Mac OSX: open the terminal and run
bash Miniconda2-latest-MacOSX-x86_64.sh
- Windows: Double click
-
Download the environment file for Windows or for OSX.
-
Create the environment with by either:
- Windows: Open the command prompt and run
conda env create -f environment.windows.yml
- Mac OSX: Open the terminal and run
conda env create -f environment.osx.yml
- Windows: Open the command prompt and run
-
Activate the tutorial by either:
- Windows: Run
activate tutorial
- Mac OSX: Run
source activate tutorial
- Windows: Run
Test things work
- Run Jupyter notebook by typing the following command
jupyter notebook .
- Open a Jupyter notebook file (
.ipynb
). If you don't have one, you can download this fun Jupyter notebook.
Leave the tutorial environment
- To stop Jupyter notebook hit
Ctrl+c
when you have the terminal open. -
- To leave the tutorial environment at the command line and go back to your normal environment:
- Windows:
deactivate tutorial
- Mac OSX:
source deactivate tutorial