Sign inGet started

Code editing

Refine your code efficiently with Deepnote AI's editing suggestions.

Need to revise your code, refactor it, or make it more readable? Deepnote AI can help edit any existing code. Just click on Open Deepnote AI in the block sidebar and simply tell Deepnote AI how you want your code to be edited.

Edited code will be displayed side by side of the original code in a diff view so you can easily see what's been changed. Press the Run code button to see the new code in action. If you're satisfied, press Done to accept the code. If the generated responses does not suit your needs, you can Discard all of the edits, returning to the state before you started editing with AI.

CleanShot 2024-05-21 at 14.12.04@2x.png

Iterating with follow-up prompts

If the suggested code does not suit your needs, you can immediately type in a new prompt as a follow-up to further edit it. Each prompt, including your follow-ups is added to the prompt edit history. If you wish to revert to a previous stage in your editing flow, you can simply click on the desired step from the list of your prompts, returning the block to that specific state. This allows you to effortlessly compare results across different prompts and continue with the most promising options.

SQL blocks

You can also use Deepnote AI to edit your SQL queries. Just click on Deepnote AI in a SQL block and tell Deepnote AI how it should edit your existing SQL code. Behind the scenes, Deepnote AI will inspect and use your database schema to better understand the written SQL code. Read more