Skip to content

Fix workbench demo launch#142

Merged
nicosuave merged 1 commit into
mainfrom
fix-workbench-demo
May 13, 2026
Merged

Fix workbench demo launch#142
nicosuave merged 1 commit into
mainfrom
fix-workbench-demo

Conversation

@nicosuave
Copy link
Copy Markdown
Member

Fixes #139.

This updates the demo docs to install the workbench extra with uvx, lazy-loads the TUI dependencies so missing extras produce a clear install hint instead of an import traceback, and covers the demo starter queries with a regression test.

Validated with the required local lint, format, and test suite, plus a headless workbench demo smoke test.

@nicosuave nicosuave marked this pull request as ready for review May 13, 2026 02:01
@nicosuave nicosuave merged commit b9c37cb into main May 13, 2026
15 checks passed
@nicosuave nicosuave deleted the fix-workbench-demo branch May 13, 2026 02:02
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5728a87038

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


from sidemantic.workbench.app import SidequeryWorkbench
from sidemantic.workbench.validation_app import ValidationApp
WORKBENCH_EXTRA_INSTALL = "uvx --from 'sidemantic[workbench]' sidemantic workbench --demo"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add the LookML extra to the demo install hint

When users follow this new hint outside the dev environment, sidemantic[workbench] installs Textual/plotting only; it does not install lkml (see pyproject.toml workbench vs lookml extras). The packaged demo includes examples/multi_format_demo/lookml/orders.lkml, and load_from_directory() parses .lkml files through LookMLAdapter, which requires lkml; without it the orders model is skipped while the starter queries in sidemantic/workbench/examples.py all reference orders.*. The demo therefore launches with the suggested command but the bundled queries fail, so the hint/README command should include the lookml extra as well, e.g. sidemantic[workbench,lookml].

Useful? React with 👍 / 👎.

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.

Demo seems to be broken

1 participant