Skip to content

gh-162388: Use animated SVGs for the Tachyon live screenshots - #162391

Open
kdeldycke wants to merge 1 commit into
python:mainfrom
kdeldycke:gh-162388-tachyon-animated-svg
Open

kdeldycke wants to merge 1 commit into
python:mainfrom
kdeldycke:gh-162388-tachyon-animated-svg

Conversation

@kdeldycke

@kdeldycke kdeldycke commented Nov 21, 2026 •

Copy link
Copy Markdown

This PR replace the Tachyon GIFs by animated SVGs in the documentation as discussed in #162388.

Which reduce the size of these assets:

GIF (now) SVG
tachyon-live-mode-1 822,727 B 304,418 B
tachyon-live-mode-2 965,522 B 347,052 B
Both, xz-compressed, as in the .tar.xz 1,743,920 B 34,528 B

The result can be seen at: https://cpython-previews--162391.org.readthedocs.build/en/162391/library/profiling.sampling.html#live-mode

Being SVGs, they also renders sharp and are scalable at any resolution.

tachyon-live-mode-1 tachyon-live-mode-2

These assets have been rendered with these click-extra invokations (a project I am maintaining for more than 5 years):

For tachyon-live-mode-1.svg:

$ uvx 'click-extra==10.3.1' screenshot --record --columns 120 --rows 47 --start 6 --end 10 --hold 0 --blank 0 --preset plain --prompt '' --watermark '' --margin 0 --padding 0 --shadow none --border none --output tachyon-live-mode-1.svg -- python3.15 -m profiling.sampling run --live --all-threads --sampling-rate 10khz --opcodes -m test test_gc test_threading test_list test_dict

For tachyon-live-mode-2.svg:

$ uvx 'click-extra==10.3.1' screenshot --record --columns 120 --rows 47 --start 6 --end 10 --hold 0 --blank 0 --preset plain --prompt '' --watermark '' --margin 0 --padding 0 --shadow none --border none --output tachyon-live-mode-2.svg -- python3.15 -m profiling.sampling run --live --all-threads --sampling-rate 10khz -m test test_gc test_threading test_list test_dict

@bedevere-app

bedevere-app Bot commented Nov 21, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@kdeldycke
kdeldycke force-pushed the gh-162388-tachyon-animated-svg branch from 8cdb3e8 to d5194b0 Compare November 21, 2026 16:03
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #36067545 | 📁 Comparing d5194b0 against main (1822ff5)

  🔍 Preview build  

1 file changed
± whatsnew/changelog.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant