Anthropic Cookbook: Clean up metaprompt notebook: clear outputs, rename CLIENT to client

Source: Anthropic Cookbook By cj

Summary

Clean up metaprompt notebook: clear outputs, rename CLIENT to client Clear all cell outputs and execution metadata so the notebook ships clean, and rename CLIENT to client to follow Python naming convention. Read the API key from the environment instead of a hardcoded variable, and re-enable the pretty_print(message) call so the generated prompt is shown when run. Tested by running the notebook top to bottom before clearing outputs. No-Verification-Needed: author ran the notebook end-to-end before clearing outputs :house: Remote-Dev: homespace

Read this on Anthropic Cookbook
Opens in a new tab. Subvolts summarizes and links; the full piece belongs to Anthropic Cookbook.
Hype check
2/5Worth a look

Rated low: routine. Worth knowing, not worth rearranging your day for.

Published
Source
Anthropic Cookbook (github.com)
Author
cj
Company
Anthropic · Learn & Do · How-to
Summary by
Subvolts, using an extract from the source (how we work). Spotted a mistake? Tell us.

Questions people ask

Where can I read the full story?
On Anthropic Cookbook. The "Read this on Anthropic Cookbook" link above opens the original in a new tab. Subvolts publishes a summary and analysis, never the full piece.
What does this mean for Claude?
Clean up metaprompt notebook: clear outputs, rename CLIENT to client Clear all cell outputs and execution metadata so the notebook…

More from Anthropic Cookbook 29 more

Everything from Anthropic Cookbook →

Page generated Sep 3, 2026. Summaries are Subvolts' own; the story belongs to Anthropic Cookbook.