P.1 Install VS Code
Do it download VS Code from code.visualstudio.com.
- Windows: run the installer with the default options.
- Mac: drag Visual Studio Code into Applications.
P.2 Install Python
Do it download Python 3.10 or newer from python.org/downloads.
- Windows: on the first screen, tick Add python.exe to PATH, then Install Now.
- Mac: open the
.pkgfile and follow the steps.
Check it: in a terminal, python --version (Windows) or python3 --version (Mac) shows Python 3.…
P.3 Install Git
- Windows: download it from
git-scm.com/downloadsand keep the defaults. - Mac: type
git --versionin Terminal. If Git is missing, click Install when your Mac offers the developer tools.
Check it: git --version shows a version number.
P.4 Create your accounts
| Account | Where | For |
|---|---|---|
| GitHub | github.com/signup |
Copilot, and storing your code |
| Copilot | github.com/settings/copilot |
Turn on Copilot Free |
| Sectors | sectors.app |
Live IDX data and your API key [VERIFY: how keys are given out on the day] |
| Streamlit Community Cloud | share.streamlit.io |
Putting your app online; sign in with GitHub |
Use the same GitHub account everywhere.
P.5 Install GitHub Copilot and Python in VS Code
Do it
Open Extensions in the left bar (Ctrl+Shift+X, Mac Cmd+Shift+X).
Install GitHub Copilot.
Install Python by Microsoft.
Click the Accounts icon at the bottom left and sign in with GitHub.
Check it: open Copilot Chat (chat icon, title bar) and send Hello. No answer? In Extensions, click GitHub Copilot → Enable.
P.6 Get the starter files
- New to GitHub: download the ZIP from Google Drive, unzip it (Windows: right-click → Extract All), then File → Open Folder in VS Code.
- Familiar with GitHub: click Use this template → Create a new repository, then clone your copy with Git: Clone from the Command Palette (
Ctrl+Shift+P). In Module 8, skip 8.3 and the publish step in 8.5.
P.7 Create a virtual environment
A virtual environment is a private box of packages for one project, kept in a .venv folder.
Easy way (Windows and Mac).Do it press Ctrl+Shift+P (Cmd+Shift+P), run Python: Create Environment, choose Venv, pick your Python, tick requirements.txt, click OK.
Terminal way. If that fails, open Terminal → New Terminal and run:
# Create the box python -m venv .venv # Turn it on .venv\Scripts\activate # Install the packages pip install -r requirements.txt
# Create the box python3 -m venv .venv # Turn it on source .venv/bin/activate # Install the packages pip install -r requirements.txt
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned, answer Y, and try again.P.8 Check that it works
Do it open a new terminal and run:
streamlit run app.py
A page titled IDX Stock Snapshot opens in your browser. Press Ctrl+C to stop it. If streamlit is not found, open a new terminal and try again.