Real scientists don't keep results in a drawer — they publish. This guide takes your Guide 03 project (question + chart + finding) and puts it on a real public website, hosted free by GitHub Pages. You will build the page with the generator in section 3 — no HTML knowledge needed — then publish it two ways: the click-only way (works from zero), or the engineer way with git push. At the end you'll have a link like https://YOURNAME.github.io/my-research/ to send to anyone.
1What you're about to make
A research companion page — the standard way scientists show work on the web. Here is a real one from a university research lab (your teacher's, actually): a LiDAR traffic-safety study companion. Notice its shape — yours will have the exact same skeleton:
| Section | The lab's page | Your page |
|---|---|---|
| Title + authors | "Roadside LiDAR for Cooperative Safety Auditing…" + two researchers | Your project title + your name |
| The question / abstract | What the study investigates | Your research question + one-line answer |
| Key figures | Point clouds, near-miss heatmaps | Your sales-by-genre chart |
| Findings | Three core contributions | Your 2–3 findings |
| Notes / limits | "lightweight visual companion…" | What your data can't see |
2Gather your three ingredients
import matplotlib.pyplot as plt totals.plot(kind="barh", title="Total sales by genre (millions)") plt.tight_layout() plt.savefig("chart.png", dpi=150) # ← creates the picture file
3Build your page — fill the form, watch it appear
Type your project into the form. The live preview below updates as you type — that is your actual website. When it looks right, hit Download index.html.
Quiz — why must chart.png sit in the SAME folder as index.html?
Guide 01, section 2 strikes again: chart.png is a relative path — "look right here, next to me." Move the picture elsewhere and the page shows a broken image. Paths follow you everywhere in computing.
4Publish — Path A: clicks only (works from zero)
Quiz — your repo is called my-research and your username is pixelkid. Where does your site live?
GitHub Pages addresses are always USERNAME.github.io/REPONAME/. The repo page (github.com/…) shows your files; the github.io address shows your website.
5Publish — Path B: the engineer way (git)
Path A works, but engineers publish from the terminal — because they update sites constantly, and clicking through upload forms gets old fast. You already know every move from Guides 01/02; this just chains them:
cd my-research-folder # the folder with index.html + chart.png git init # save slot (once) git add . git commit -m "publish my research" git remote add origin git@github.com:YOURNAME/my-research.git # connect the cloud (once) git push -u origin main # upload — then enable Pages as in Path A step 3
index.html and chart.png waiting. Run the whole publish ritual — Mission: The publish ritual checks you off step by step. Do it twice until it's automatic.git push asks for passwords or gets rejected, that's the keycard from Guide 01 section 5 / Guide 02 section 6: make a key with ssh-keygen and add it to GitHub once, and pushing works forever after.6Update it, show it off
Here is the beautiful part — your site rebuilds itself every time you push:
# found a better chart? new finding? edit your files, then: git add . git commit -m "add second chart" git push # ~1 minute later the website shows the new version
| I want to… | How |
|---|---|
| Make the page | Section 3 builder → index.html + your chart.png |
| Put it online (no code) | Upload to repo → Settings → Pages → main / root |
| Put it online (git) | init → add → commit → remote add → push → enable Pages |
| Update it | edit → add → commit → push (site refreshes itself) |
| Find my site | https://USERNAME.github.io/REPONAME/ |
Homework: publish for real — builder page + your Guide 03 chart + Path A (or B if you're feeling like an engineer). Bring the live link to class. When it loads on the classroom screen, you are officially a published researcher. 🌐 Missing a chart? Do Guide 03 first. Rusty on commands? Guide 02 · 🕹️ Terminal Quest.
