/ml-workshop

Primary LanguageJupyter Notebook

Machine Learning Workshop

Install Python

Windows & Mac OSX & Linux:

  1. Install Python
  • If you use linux: check section below, then proceed with step 2
  • If you use Windows/Mac; Download Miniconda (Python 3.7, 64bit)
    .exe Installer for Windows (Check "Add Anaconda to my PATH environment variable" (Windows only))
    .pkg Installer for Mac
    https://docs.conda.io/en/latest/miniconda.html
  1. Open a terminal & install Jupyter Notebook & virtualenv
# windows/mac
conda install jupyter
conda install virtualenv

# linux
apt-get -y install ipython ipython-notebook
pip3 install jupyter
pip3 install virtualenv
  1. Create a new virtual environment and activate it
virtualenv ml-workshop-env

# on windows
call ml-workshop-env\Scripts\activate

# on mac/linux
source ml-workshop-env/bin/activate
  1. Clone github repo & install package requirements
git clone https://github.com/nkaenzig/ml-workshop.git
cd ml-workshop

# on windows
pip install -r requirements.txt

# on mac/linux
pip3 install -r requirements.txt

Linux:

  1. Check if Python is already installed
python3

If this opens a python prompt, skip step 2 and proceed with step 2 in section (Windows & Mac OSX)

  1. Install Python
sudo apt-get update
sudo apt-get install python3.7

Add kernel to Jupyter

# on windows
call ml-workshop-env\Scripts\activate
pip install ipykernel
ipython kernel install --user --name=ml-workshop-env

# on mac/linux
source ml-workshop-env/bin/activate
pip3 install ipykernel
ipython kernel install --user --name=ml-workshop-env