Skip to content

Ability to display static Altair plots#2039

Open
rolandwalker wants to merge 1 commit into
mainfrom
RW/display-altair-plots
Open

Ability to display static Altair plots#2039
rolandwalker wants to merge 1 commit into
mainfrom
RW/display-altair-plots

Conversation

@rolandwalker

Copy link
Copy Markdown
Contributor

Description

  • If a .| dataframe operation returns a plot, display it inline, using the kitty graphics protocol by default (since it has the widest support in contemporary terminals such as kitty and Ghostty https://sw.kovidgoyal.net/kitty/graphics-protocol/).
  • Revise transforms.md doc, including changes outside the subject area of plotting.

There are some small incidental PromptState tests added, as coverage showed that our coverage there was not 100% for some reason.

There are many minor followups we can imagine here, such as providing the facility to save an image.

As for major followups, I am not contemplating going any farther down the path of becoming a notebook replacement. This is far enough. The idea is just to reduce the barrier between the two modes of working.

Example:

plot_table_name_lengths

xref #2031

Checklist

  • I added this contribution to the changelog.md file.
  • I added my name to the AUTHORS file (or it's already there).
  • To lint and format the code, I ran
    uv run ruff check && uv run ruff format && uv run mypy --install-types .

* if a .| dataframe operation returns a plot, display it inline, using
  the kitty graphics protocol by default (since it has the widest
  support in contemporary terminals such as kitty and Ghostty
  https://sw.kovidgoyal.net/kitty/graphics-protocol/)
* revise transforms.md doc, including changes outside the subject area
  of plotting

There are some small incidental PromptState tests added, as "coverage"
showed that our coverage there was not 100% for some reason.

There are many minor followups we can imagine here, such as providing
the facility to save an image.
@rolandwalker rolandwalker self-assigned this Jul 23, 2026
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.

1 participant