Skip to content

Instantly share code, notes, and snippets.

@punchouty
Last active September 17, 2019 18:17
Show Gist options
  • Save punchouty/5facb58252cd83e54ef86d13be22b134 to your computer and use it in GitHub Desktop.
Save punchouty/5facb58252cd83e54ef86d13be22b134 to your computer and use it in GitHub Desktop.

Conda - Manage Enviornment

  • conda env list # list all enviornment
  • conda info --env
  • conda create --name py2 python=2.7 # Create new enviornment
  • conda create -n tfdeeplearning python=3.5
  • conda create -f tfdl_env.yml # create new enviornment from file
  • conda activate base # activate base python
  • conda deactivate # deactivate base python
  • conda activate py2

Jupyter Notebook

  • jupyter notebook # start notebook and open browser

Jupyter Notebook Shortcuts

  1. shift + enter # run a cell
  2. tab # autocomplete
  3. shift + tab # show doc string
  4. D + D # delete a cell
  5. Esc + M # change cell to mark down
  6. Esc + Y # change cell to code
  7. option + enter # insert cell below
  8. shift + tab # to see doc string
  9. Kernal restart - from menu

Use Conda Instead - DEPRECATED Create Virtual Enviornment

  1. pip install virtualenv
  2. pip install --upgrade pip (Optional)
  3. mkdir virtual-env
  4. sudo virtualenv -p python3 virtual-env
  5. source virtual-env/bin/activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment