Skip to content

Kernel output based on destination#360

Merged
thomasp85 merged 4 commits intomainfrom
jupyter-kernel-improvements
Apr 23, 2026
Merged

Kernel output based on destination#360
thomasp85 merged 4 commits intomainfrom
jupyter-kernel-improvements

Conversation

@thomasp85
Copy link
Copy Markdown
Collaborator

Fix #356

This PR updates the Jupiter kernel vegalite output so that it responds to the destination of the plot

Plot pane: resizes to fit
Inline view: adaptive width, fixed 400px height
Anything else (e.g. quarto). min width at 450px below which it begins to shrink rather than adapt

The issue described in #356 was due to interactions between the inline display and the plot pane fit to size implementation

@thomasp85 thomasp85 requested a review from georgestagg April 23, 2026 09:24
Copy link
Copy Markdown
Collaborator

@georgestagg georgestagg left a comment

Choose a reason for hiding this comment

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

LGTM!

I really like the hints system to figure out what template to send on the Rust side rather than at runtime in the embedded JS code.

@thomasp85 thomasp85 merged commit 30ac235 into main Apr 23, 2026
2 checks passed
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.

ggsql within quarto files with inline outputs renders slowly

2 participants