tysland / champagne_coding-26022020

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

champagne_coding-26022020

Champagne Coding with Redpill Linpro on February 26, 2020

Set-up

  1. Go through the steps in the file, CheatSheet_ChampagneCoding.pdf
  2. Once Anaconda is installed, you should set up a new conda environment in the terminal (macOS, Linux) or the anaconda prompt terminal (Windows):
  • Option 1: conda env create --name champagne_coding -f environment.yml
  • Option 2: If that doesn't work, try conda create --name champagne_coding --file explicit_env.txt
  • NOTE: if this doesn't work and you're using Windows, you may have to install the Python packages as you go through the code
  • More information on using conda here:
  1. Activate the environment:
  • Linux, mac OS: source activate champagne_coding
  • Windows : activate champagne_coding
  1. Start a jupyter notebook: jupyter notebook
  2. Run through the Python notebook, housesales.ipynb

Simple git workflow

Initial checkout from server to local host

  git clone <url>

Pull changes from server to local host

  git pull

Commit changes locally

  git commit -a -m "Commit message"

Push committed changes to origin server

  git push

Docker

If you have docker installed, you can test the code locally with:

docker build . -t champagne-coding
docker run -p 8080:8080  --volume="$PWD:/app" -it champagne-coding

The application is then available on http://0.0.0.0:8080/ in your web browser

About


Languages

Language:Jupyter Notebook 91.5%Language:Python 6.3%Language:HTML 2.0%Language:Dockerfile 0.2%