Skip to content

Fix progress bar not displaying in Databricks notebooks#311

Merged
aseyboldt merged 1 commit intopymc-devs:mainfrom
williambdean:fix/databricks-progress-bar
Apr 29, 2026
Merged

Fix progress bar not displaying in Databricks notebooks#311
aseyboldt merged 1 commit intopymc-devs:mainfrom
williambdean:fix/databricks-progress-bar

Conversation

@williambdean
Copy link
Copy Markdown
Contributor

Summary

  • Databricks notebooks use a custom IPython shell class that does not identify as ZMQInteractiveShell, causing in_notebook() to return False and falling back to the terminal (indicatif) renderer which produces no visible output
  • Adds a check for the DATABRICKS_RUNTIME_VERSION environment variable, which Databricks sets automatically on all cluster runtimes — the same approach used by rich

References

@williambdean williambdean requested a review from aseyboldt April 28, 2026 01:04
@williambdean
Copy link
Copy Markdown
Contributor Author

@aseyboldt
Copy link
Copy Markdown
Member

Thanks!

@aseyboldt aseyboldt merged commit 8c733c6 into pymc-devs:main Apr 29, 2026
48 of 50 checks passed
@williambdean williambdean deleted the fix/databricks-progress-bar branch April 29, 2026 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No progressbar on databricks

2 participants