SteveOstrowski
Databricks Employee
Databricks Employee

Hi @Ashley1,

There are a few different levels where you can control the AI assistance behavior in notebooks. Here is a breakdown:

USER-LEVEL: DISABLE AI AUTOCOMPLETE (INLINE SUGGESTIONS)

This is the setting that controls the "ghost text" inline code suggestions that appear as you type, which sounds like the main source of frustration you are describing.

1. Click your username in the upper-right corner of the workspace.
2. Select "Settings" from the dropdown menu.
3. In the Settings sidebar, select "Developer."
4. Under the "Code editor" section, toggle off "Autocomplete as you type."

With this disabled, you will no longer see automatic inline suggestions. You can still manually trigger autocomplete on demand by pressing Ctrl + Space when you want it, giving you full control over when suggestions appear.

There is also a separate toggle for "Enter key accepts autocomplete suggestions" if you want to prevent accidentally accepting suggestions with the Enter key but keep autocomplete visible.

For the AI-powered Assistant autocomplete specifically, the keyboard shortcut Ctrl + Shift + Space (or Option + Shift + Space on Mac) triggers it manually. With the "Autocomplete as you type" toggle off, you should not see unsolicited AI suggestions.

DISMISSING SUGGESTIONS QUICKLY

If you prefer to keep autocomplete on but want a faster way to dismiss suggestions, pressing Escape will dismiss any inline suggestion. You can also just keep typing and the suggestion will update or disappear.

WORKSPACE ADMIN-LEVEL: DISABLE AI FEATURES ENTIRELY

If you are a workspace admin and want to go further, you can disable the AI-powered features at the workspace level:

1. Click your username in the upper-right corner.
2. Go to Settings > Workspace admin > Advanced.
3. Toggle off "Partner-powered AI features."

This disables partner-model-powered AI capabilities. Databricks-hosted models will still power basic Assistant autocomplete, but the more aggressive AI suggestions will be reduced.

DOCUMENTATION REFERENCES

For more details on these settings, see:

https://docs.databricks.com/aws/en/notebooks/notebook-editor.html
https://docs.databricks.com/aws/en/notebooks/use-databricks-assistant.html
https://docs.databricks.com/aws/en/databricks-ai/partner-powered.html

The notebook editor page covers autocomplete settings and keyboard shortcuts, while the Assistant page covers the AI-specific features.

* This reply used an agent system I built to research and draft this response based on the wide set of documentation I have available and previous memory. I personally review the draft for any obvious issues and for monitoring system reliability and update it when I detect any drift, but there is still a small chance that something is inaccurate, especially if you are experimenting with brand new features.

If this answer resolves your question, could you mark it as "Accept as Solution"? That helps other users quickly find the correct fix.