The Python script of a pattern
get_codeThe whole Python script of a pattern (numpy and matplotlib, under 80 lines), as the lesson and the site show it and as the site’s tests run it, with how to run it, what to change to see something new, and a Google Colab notebook to run it in a browser.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pattern": "<pattern>"
},
"name": "get_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | The language of the answer: en (the default), pl; es, pt, fr, de, ja and ko for patterns and lessons (the course stays in English there) | |
| pattern | Yes | The pattern (its slug), as list_patterns gives it |