AI assistance for Python

Your code.
A clearer next step.

Ask for an explanation, investigate an error or compare approaches while the source stays in view. Try the suggestion, run your code and decide what to keep.

Local AI assistant explaining the selected Python function
A local Ollama conversation about the selected file.

Ask with context

Start with the question
you are working on.

Understand a function

Select the relevant file and ask what the function does, what it expects and what it returns.

Investigate an error

Include the error and the behaviour you expected. Ask for a change you can check with a small test.

Explore another approach

Ask for a simpler version or a test case, then compare the answer with the original code.

Your AI setup on Mac

Choose where the answer comes from.

Use an AI service

Connect your own API key for a supported provider. Its account, pricing and data handling apply.

See provider settings →

Run a local model

Connect Ollama and choose a model installed on your Mac for local conversations about your code.

Set up local Ollama →

Mac AI integrations are included in the free download. With Gemini or Anthropic the open file is sent to that vendor with your question, so check it for keys or personal data first; Ollama runs the model on your Mac. External services may charge for usage.

From a question to a checked change

Keep your judgement in the loop.

  1. Open the file you mean

    The assistant reads the file you have open, so open that one and describe the result you want.

  2. Read the explanation

    Compare the response with your source and ask a follow-up when a detail is unclear.

  3. Try and verify

    Apply the change you choose, run the script and test the behaviour. AI suggestions can be wrong.

Follow the Mac assistant walkthrough →

Code Assistant on iPhone & iPad

Talk through a script
wherever you are.

Ask for help generating, refining or debugging Python inside the mobile editor. Keep experimenting with the answer in your own script.

Mobile assistant access requires the applicable subscription and provider API key.

Explore the mobile workspace →
Python source and an image result in the iPhone app
The iPhone editor, where you can try the code you choose.

Bring your next Python question.

Explore the assistant alongside your Mac project.

Download free for Mac