Personal notes on developing tools and programming languages.
-
Installing python:
- Usually good to search for "Setting up python development environment in [Mac/Windows]" and follow instructions.
-
Set-up with virtual environments:
- Create a folder for your project.
- Open the folder in Visual Studio Code (VS).
- Open the terminal in VS and run the following. This step only needs to happen once per project.
python3 -m venv .venv source .venv/bin/activate pip install --upgrade pip- Search for "Select Python Interpreter" VS and select
.venv. This will ensure you don't mess with the baseline python installation in your computer. - To install packages, run
pip install ...from the terminal in VS. Make sure the virtual environment is active before: there should be a(.venv)in the terminal.
-
- Getting started: Chapters 3, 4 and 5.
- Really useful afterwards: 8 and 9.
-
Data handling: Pandas User Guide.
- Worth going through the 10 minutes to pandas chapter.
- Otherwise, browse as needed.
-
Useful libraries and tools:
osto look for folders, environment variables and manage files.requeststo interact with webpages and APIs.altairfor charts and plots in python (docs)streamlitfor interactive dashboards (docs)- String formatting: https://docs.python.org/3/tutorial/inputoutput.html