Skip to main content

Python

Introduction

General

macOS setup

  • Install pyenv
    • brew install pyenv + brew install pyenv-virtualenv
      • confirm what I added in the end
  • Install Python using pyenv
    • do not brew install python or brew install python3
      • confirm if it’s installed
  • Set up VS Code
    • Add Python extension to VS Code
    • hopefully this doesn’t happen to you, but it did to me: if trouble with the Python extension (Python not added to the file language options list, python commands not working in integrated terminal):
      • completely uninstall VS code (via AppCleaner + Homebrew uninstall + rm -rf ~/.vscode)
      • start a new VS install (via Homebrew) from scratch
      • carefully add one extension and setting at a time + settings sync as you go after each change

Pyenv

Positional vs Keyword Arguments

Loops

Performance

Other Syntax

Testing

NumPy

Flask

Web Scraping

CSV Parsing

Inbox