ChatGPT Canvas & Code Interpreter

45 min intermediate Lesson 4

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

1 Opening Canvas for Long-Form Work

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.

NOTE
Where It Lives
Canvas works in the browser and in the Windows and macOS desktop apps, for both Free and paid accounts. Anything you type directly into the panel sticks — fix a typo yourself, then ask ChatGPT to build on your edit.

2 Inline Edits and Canvas Shortcuts

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
TIP
Highlight Before You Ask
When a draft is mostly right but one paragraph is off, highlight that paragraph first, then give your instruction — you get a surgical edit instead of a fresh draft that loses your earlier fixes.
WARNING
Version Drift
A big regeneration can quietly undo earlier manual tweaks. Keep requests small and section-scoped, and use the panel's version-history control to step back if something vanishes.

3 Uploading Data to Code Interpreter

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.

NOTE
It Self-Corrects
When the generated code errors, ChatGPT sees it and revises the code on its own — that is why analysis here beats asking a chat model to 'do the maths' from memory. CSV uploads reach roughly 50 MB depending on row width; if one stalls, export only the columns and dates you need.

4 Charts, Downloads, and Verifying the Numbers

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.
TIP
Make It Show Its Work
After any non-trivial number, ask for the underlying rows and the calculation. A wrong filter or misread date column produces confident, wrong totals — thirty seconds of checking saves you from quoting a bad figure.
WARNING
Files Do Not Live Forever
Uploaded files and the sandbox are temporary and clear based on your plan and session. Download anything you want to keep before leaving the chat.

5 Web Research with Citations

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
TIP
Citations Are the Point
A summary without a source is just a confident claim. Add 'cite the official page' to steer toward vendor docs over blogs, and open the link rather than quoting the summary alone.

6 Choosing the Right Tool for the Job

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.

TIP
Name the Tool When You Mean It
If ChatGPT answers from memory instead of acting, say the words: 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

Q: I asked for a document but Canvas never opened — what went wrong?
Short responses stay inline; Canvas tends to trigger on longer content (roughly ten-plus lines) or clear writing and coding tasks. The reliable fix is to put use canvas in your prompt, which forces the panel open regardless of length.
Q: Can I trust the numbers Code Interpreter gives me?
More than a plain chat answer, because it runs actual Python and corrects its own code errors before replying. But it can still misread a column or apply the wrong filter, so ask it to show the underlying rows and formula and spot-check any key figure yourself.
Q: Is the web search actually current, or is it the model guessing?
When search runs, it pulls live results and attaches inline citations you can hover and click. The summary can still paraphrase loosely, so for anything fast-moving — prices, model names, limits — open the cited page before you rely on the figure.
Q: Do I lose my work if I close the chat?
Your conversation and its Canvas typically persist in your history, but uploaded files and the analysis sandbox are temporary and get cleared. Download any generated spreadsheets or charts you care about, and keep your own copy of the source data.

Key Takeaways

  1. 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.
  2. 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.
  3. Always verify the numbers — ask it to show its rows and formulas, and download what you need before the temporary files clear.
  4. Search gives you checkable facts — clickable inline citations are the whole point; open primary sources for anything that changes fast.
  5. 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