Repository navigation
feat: enable the visualize tool by default, warn instead of error without deps - #294
Merged
Merged
Conversation
cpsievert
force-pushed
the
viz-default
branch
from
September 10, 2026 16:54
14f2d50 to
7f0e342
Compare
…r without deps Default tools are now (filter, query, visualize) in both languages. When visualization dependencies are missing (R: ggsql; py: the viz extra of ggsql/altair/shinywidgets/vl-convert-python), the visualize tool is dropped with a one-time warning rather than raising an error (replaces rlang::check_installed and the py ImportError in normalize_tools), so one-liner apps and page()/app() layouts get visualization out of the box when deps are present and degrade gracefully when not.
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
cpsievert
force-pushed
the
viz-default
branch
from
September 10, 2026 18:34
7f0e342 to
7fda833
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #291.
Summary
The
"visualize"tool joins the default toolset in both languages:tools = c("filter", "query", "visualize")(R) /("filter", "query", "visualize")(py). One-liner apps andpage()layouts get visualization out of the box.When the visualization dependencies aren't installed (R: ggsql; py: the
vizextra — ggsql, altair, shinywidgets, vl-convert-python), the tool is now dropped with a one-time warning instead of erroring: replacesrlang::check_installed()in R and theImportErrorfromnormalize_tools()in py. The system prompt never advertises a tool that isn't registered, and py'spreload_vizstays consistent since resolution happens at construction.Verification
check_viz_deps()test (warns once per session, drops the tool)