- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2026 12:17 PM
Hello @haaland, I took a look at both internal and external documentation and here is what I found.
Glad it's working, and @Gecofer and @ivanvyd had the right diagnosis. enable_visualization was never removed. It shipped in databricks-sdk v0.120.0 (July 2026), alongside the viz attachment type and download_message_attachment_visualization(), and nothing through 0.141.0 took it back out. So a 0.141.0 version string next to a signature that lacks the argument means the files on disk and the code running in your Python process had drifted apart: either a stale process still holding the classes your WorkspaceClient was built from, or a second interpreter or SDK copy doing the loading.
The checks Gecofer and Ivan suggested are the way to confirm which:
import inspect, sys
import databricks.sdk
print(sys.executable)
print(databricks.sdk.__version__)
print(databricks.sdk.__file__)
print(inspect.signature(w.genie.start_conversation_and_wait))
In a notebook, upgrade, restart Python, then rebuild the client:
%pip install --upgrade databricks-sdk
dbutils.library.restartPython()
After the restart the signature should show enable_visualization: Optional[bool] = None. If it still doesn't, compare sys.executable and databricks.sdk.__file__ against the environment where you ran the install. For a Databricks App, pin databricks-sdk>=0.120.0 in requirements.txt and redeploy.
On what the flag actually does: it asks Genie to generate a visualization but doesn't guarantee one. When the question and data support a chart, the response carries a viz attachment (Beta) next to the query attachment, with a title and the query_attachment_id it came from. For a rendered PNG, call w.genie.download_message_attachment_visualization(name=...) with name in the form spaces/{space_id}/conversations/{conversation_id}/messages/{message_id}/attachments/{attachment_id}. That only works once the message status is COMPLETED, so the _and_wait variants you're using are the right fit.
References:
- Genie SDK reference: https://databricks-sdk-py.readthedocs.io/en/stable/workspace/dashboards/genie.html
- SDK release notes (v0.120.0 added
enable_visualization😞 https://github.com/databricks/databricks-sdk-py/releases - Genie Conversation API reference: https://docs.databricks.com/api/genie/v1/conversation
- Databricks SDK for Python on PyPI: https://pypi.org/project/databricks-sdk/
Regards,
Louis.