Sign inGet started

Deepnote AI

Use the power of Deepnote AI to generate, edit and explain code.

Deepnote AI is designed to make your data work more efficient and productive. Ask questions in plain language, and Deepnote AI will craft or revise code according to your instructions. It can also provide concise explanations for complex pieces of code, enhancing your understanding. Whether you’re a Python pro or a coding beginner, Deepnote AI assists you every step of the way to gain the insights you need.

Enabling Deepnote AI

To make use of Deepnote AI, you must enable this feature in your workspace. Navigate to Settings & Members and click on Project settings. With Deepnote AI turned on, every editor and admin user in your workspace will gain access to features like code generation, editing, and explanation.

deepnote ai settings.png

Working with Deepnote AI

Generating code

One of the biggest challenges in coding can be getting started. Use Deepnote AI to create new code from your instructions. Simply add a new code block to your notebook and click on the Deepnote AI button in the block sidebar menu.

After you initiated code generation, a dialogue box will be displayed. You can type your instruction here in plain language. Submit your prompt and Deepnote AI will produce the corresponding code for you in the block as a suggestion.

Once the code suggestion is presented, you have the choice to accept it (Accept) or reject it (Reject). If the suggestion doesn't meet your needs, feel free to modify your instructions for improved results. This could involve providing additional context or being more specific with your request.

Currently, Deepnote AI is configured to generate Python code in your block. Any related textual explanations will appear in a pop-up adjacent to the block.

Please note that your collaborators in the notebook will only see any AI-generated code after you accepted it.

Editing code

Need to revise your code, refactor it, or make it more readable? Deepnote AI can help edit any existing code. Just open the block sidebar in a code block and select the Deepnote AI button. Choose the Edit option and tell Deepnote AI how you want your code edited.

You can accept or reject the provided suggestion. If you reject it, the previous state of the code block will be restored.

Explaining code

Code can be complicated. Whether it's long, uses an unfamiliar framework, or was written by someone else, Deepnote AI can help by providing a simple, understandable summary. Just open the block sidebar in a code block and select the Deepnote AI button. Choose the Explain option and Deepnote AI will display the explanation for you.

For future reference, you may want to save this explanation in a new text block. To do this, just click on the Paste as text block button.

Fixing code

When running into an error, you'll find a new Fix with Deepnote AI button appearing right beneath your error message, ready to come to your aid. After you click it, Deepnote AI swings into action, delivering a concise suggestion on how to rectify your issue along with the revised code.

You are presented with two options - Accept & run or a simple Accept. Choose Accept & run to automatically apply and execute the fix, or select Accept to only integrate the suggested changes leaving the execution to you, giving you time to review or further modify the changes before running the code again.

Data Privacy

How is your data processed?

Deepnote AI processes the content and metadata of the notebook via its partner LLM provider (OpenAI). This can include code, text and metadata of variables (column names) within the notebook.

What about outputs?

You have the option to control whether you would like to share the outputs of block executions with OpenAI. If you turn on the 'Provide access to block outputs' switch, Deepnote AI will be able to read the outputs in your notebook, greatly enhancing the relevance of its suggestions.

project settings.png

Where is your data stored?

The context sent can be processed in the US and worldwide. OpenAI may keep the context data for up to 30 days for safety monitoring purposes, after which it's automatically deleted. See more details here.

Working on sensitive projects?

If you're working on a sensitive project and have concerns about processing any code, text or data through LLMs, admins can disable Deepnote AI in Settings & MembersProject settings. This will prevent any data from being sent for processing and Deepnote AI features won't be available in your workspace.

Feedback

We're always looking to improve Deepnote AI, and your feedback is invaluable! Share your ideas and suggestions on our Product Portal.

If you want to be directly involved in shaping the future of Deepnote AI, we're seeking research partners for our upcoming AI projects. To chat more, please book a time with our product team via this link.