How to Kaggle the Engineer way — Act 1: VS Code Containers
http://go.microsoft.com/fwlink/?LinkID=617350
WebApr 14, 2021 · Tell VS Code to define this environment variable in devcontainer.json: "containerEnv": {"KAGGLE_MODE": "DEV"}, Use it in code to check whether you’re running locally or not: import os DEVMODE = os.getenv("KAGGLE_MODE") == "DEV" print(f"DEV MODE: {DEVMODE}") EPOCHS = 2 if DEVMODE else 30
DA: 9 PA: 87 MOZ Rank: 96