FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-138122: Improve bytecode panel by ivonastojanovic · Pull Request #142910 · python/cpython · GitHub

/ cpython Public

gh-138122: Improve bytecode panel - #142910

Merged
pablogsal merged 1 commit into
python:mainfrom
ivonastojanovic:heatmap_bytecode_panel
Dec 18, 2025
Merged

gh-138122: Improve bytecode panel#142910
pablogsal merged 1 commit into
python:mainfrom
ivonastojanovic:heatmap_bytecode_panel

Conversation

Copy link
Copy Markdown
Contributor

The bytecode panel appears when a user generates a heatmap with --opcodes and clicks the button to unfold a line and display the bytecode instructions. Currently, an empty space appears on the left where the line number, self, and total columns are displayed. This area should instead extend those columns, rather than leaving a gap.

Before:

Screen.Recording.2025-12-18.at.00.08.34.mov

Now:

Screen.Recording.2025-12-18.at.00.03.09.mov

The bytecode panel appears when a user generates a heatmap with
--opcodes and clicks the button to unfold a line and display the
bytecode instructions. Currently, an empty space appears on the
left where the line number, self, and total columns are displayed.
This area should instead extend those columns, rather than leaving
a gap.

Copy link
Copy Markdown
Member

@lkollar @hugovk @savannahostrowski @StanFromIreland @AA-Turner I am curious what you think about this UX. @ivonastojanovic and myself were discussing how this should look. I particularly like that when you click the arrow it looks like the source line "unfolds" and shows the bytecode internals but the original versions is too wide and the data is too spread around. On the other hand this looks "more" like a popup. What do you folks think?

hugovk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Yes, this looks better 👍

pablogsal merged commit cbc0851 into python:main Dec 18, 2025
52 checks passed

Copy link
Copy Markdown
Member

Amazing 👌

cocolato pushed a commit to cocolato/cpython that referenced this pull request Dec 18, 2025
The bytecode panel appears when a user generates a heatmap with
--opcodes and clicks the button to unfold a line and display the
bytecode instructions. Currently, an empty space appears on the
left where the line number, self, and total columns are displayed.
This area should instead extend those columns, rather than leaving
a gap.
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL