Skip to content

Instantly share code, notes, and snippets.

@brianspiering
Last active February 9, 2019 18:06
Show Gist options
  • Save brianspiering/b1d1dc6dc81829893c19059f8a61d58b to your computer and use it in GitHub Desktop.
Save brianspiering/b1d1dc6dc81829893c19059f8a61d58b to your computer and use it in GitHub Desktop.
Current Data Science Teaching Environment - TeachOps For the Win!
name: rl-course
channels:
- conda-forge
- damianavila82
- pytorch
dependencies:
- python==3.7
- pytorch>=1.0
- torchvision
- ipython
- jupyter
- jupyterlab
- matplotlib
- numpy
- nbgrader
- pandas
- scikit-learn
- seaborn
- requests
- rise
- pip:
- jupyter_contrib_nbextensions
- mdp
- pymdptoolbox
#!/bin/bash
# Before running this script, install miniconda or anaconda with Python 3.7
# https://conda.io/docs/user-guide/install/macos.html
# After installing either miniconda or anaconda, open a new terminal code so conda is on the path
# Must cd into this directory to run this script successfully
# Setup the environment for the classroom. TeachOps FTW!
set -e # Exit immediately if a command exits with a non-zero status
set -x # Exit immediately if a pipeline exits with a non-zero status
# Name of environment is from environment.yml
envname=$(sed '1!d' environment.yml | sed 's/^.* //')
# Create environment based on environment.yml in the same directory
conda update -n base conda -y
conda env create -n $envname --force
# Start environment
source activate $envname
# Update during development; Pin right before teaching
conda update --all --yes
# Enable extensions
jupyter contrib nbextension install --user
jupyter nbextension enable spellchecker/main
jupyter nbextension enable codefolding/main
jupyter nbextension install rise --py --sys-prefix
jupyter nbextension enable rise --py --sys-prefix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment