ChatGPT Canvas & Code Interpreter
Learning Outcomes
- Open and co-edit a document in Canvas using inline edits and shortcuts
- Upload a dataset and direct Code Interpreter to analyse and chart it
- Download generated files and verify the numbers behind a chart
- Run web research that returns clickable, checkable citations
- Choose the right built-in tool for editing, analysis, or research
Lesson Plan
| Segment | Duration | Topic |
|---|---|---|
| Intro | 3 min | The three power tools inside ChatGPT |
| Demo 1 | 8 min | Opening and co-editing in Canvas |
| Demo 2 | 7 min | Canvas shortcuts and section edits |
| Demo 3 | 9 min | Uploading data to Code Interpreter |
| Demo 4 | 6 min | Charts, downloads, and verification |
| Demo 5 | 7 min | Web research with citations |
| Wrap-up | 5 min | When to use which |
Before You Begin
Pre-work:
- Complete Lesson 3: ChatGPT App & GPTs so you know the interface
- Sign in to ChatGPT in a browser or the desktop app
- Prepare a small CSV file (a few hundred rows is plenty)
Shopping List:
- A ChatGPT account (a paid tier is recommended — Code Interpreter and the most generous limits live on paid plans)
- A sample CSV (sales figures or a budget export — anything with numbers and dates)
- A research question you actually want answered
Canvas is a side-by-side editing surface. Instead of regenerating a whole document for every tweak, ChatGPT opens a panel you and the model edit together — conversation on the left, living document on the right.
Two ways to open it:
- Automatically — when ChatGPT generates content longer than roughly ten lines, or detects a writing or coding task worth editing.
- On request — add "use canvas" to your prompt.
Try this in a fresh chat:
> Use canvas to draft a one-page onboarding email for new customers
> of a project-management app. Friendly but professional, with a
> short welcome, three things to do first, and a sign-off.
A panel slides in with the draft — editable text, not a frozen reply. Click in and type to change it yourself.
The real power of Canvas is targeting one part of the document instead of the whole thing. Highlight a sentence or paragraph and ChatGPT focuses only on your selection.
Highlight the "three things to do first" list, then type:
> Make these three steps more specific and start each one with a verb.
Only that section changes; the rest is untouched.
Canvas also exposes one-click shortcuts as panel buttons:
| For writing | For code |
|---|---|
| Adjust length | Review and suggest fixes |
| Change reading level | Add comments and logs |
| Add a final polish | Fix bugs |
| Suggest edits | Port to another language |
Code Interpreter (also labelled data analysis) lets ChatGPT write and run real Python in a sandbox to crunch files you upload. You ask in plain English; it writes the code, runs it, reads any errors, and fixes them before answering.
Start a new chat, click the attachment control next to the message box, upload your CSV, and ask:
> Here is a CSV of monthly sales. Profile it: how many rows, what
> columns and types, any missing values, and the date range. Then
> tell me the three highest-revenue months and the month-over-month
> growth rate for the last six months, in a table.
ChatGPT loads the file, inspects it, and replies with a profile, a scrollable interactive table, and your analysis. The file and prior results stay available for the whole chat, so you can keep refining.
Now ask for visuals and a file to keep. Code Interpreter builds charts and tables from your file, then hands you a download link — the sandbox lets you upload files and download the results.
> Plot total revenue by month as a line chart, labelling the axes.
> Then add a month-over-month growth column and export the full
> table as an Excel file I can download.
Then verify before you trust:
> Show me the exact rows and formula you used to calculate that 12%
> growth figure, so I can check it myself.
The third built-in tool is web search. When ChatGPT searches, it returns timely answers with inline citations — hover to preview a source, click to open it. Search is available across the tiers, including Free, Plus, Team, Edu, and Enterprise.
It often searches on its own for time-sensitive questions, but you can force it with the web-search control near the message box, or just ask:
> Search the web. What are the current pricing tiers for ChatGPT,
> Claude, and Gemini? Give me a comparison table and cite the
> official pricing page for each one.
Read the answer, then click the citations. The model summarises sources; the sources are where the truth lives. For anything fast-moving — prices, models, limits — open the linked page before acting.
| Question style | Likely to trigger search? |
|---|---|
| "What changed this week in..." | Yes — time-sensitive |
| "Compare the latest versions of..." | Yes — comparison and recency |
| "Explain how compound interest works" | No — stable knowledge |
| "What did this company announce yesterday" | Yes — dated event |
These three tools overlap just enough to confuse people. The mental model:
| You want to... | Reach for | Why |
|---|---|---|
| Co-write and revise a doc or code | Canvas | Section edits, nothing regenerates wholesale |
| Crunch a spreadsheet or file | Code Interpreter | Real Python, real maths, downloadable results |
| Find current facts with sources | Web search | Clickable citations you can verify |
They also combine — a realistic workflow chains all three:
> Search the web for the latest electric-vehicle sales figures and
> cite the sources. Then chart year-over-year growth from those
> numbers, and use canvas to draft a short briefing memo.
One request researches with citations, analyses with code, and drafts in an editable surface — research to deliverable, one chat.
use canvas, analyse this file, or search the web. If a long multi-stage prompt drops a step, run the stages as separate messages and check each.Questions & Answers
use canvas in your prompt, which forces the panel open regardless of length.Key Takeaways
- Canvas is a shared editing surface — open it with long content or "use canvas," highlight a section for a targeted edit, and lean on its one-click shortcuts for length, reading level, and code fixes.
- Code Interpreter does real analysis — it writes and runs Python in a sandbox, self-corrects errors, builds charts and tables, and gives you downloadable files.
- Always verify the numbers — ask it to show its rows and formulas, and download what you need before the temporary files clear.
- Search gives you checkable facts — clickable inline citations are the whole point; open primary sources for anything that changes fast.
- Match the tool to the task — Canvas for co-editing, Code Interpreter for data, search for current facts, chained when a job needs all three.
Next Steps: Lesson 5: Gemini Across Workspace