Skip to content

Highlight the executing node with stack_data#12150

Merged
Carreau merged 1 commit intoipython:masterfrom
alexmojaki:highlight-executing-node
Feb 27, 2020
Merged

Highlight the executing node with stack_data#12150
Carreau merged 1 commit intoipython:masterfrom
alexmojaki:highlight-executing-node

Conversation

@alexmojaki
Copy link
Copy Markdown
Contributor

Here's what it's all been about! Closes #11827

Example script:

def foo(i):
    x = [[[0]]]
    return x[0][i][0]


def bar():
    return foo(0) + foo(
        1
    ) + foo(2)


bar()

Output:

Screenshot from 2020-02-27 20-51-28

@Carreau Carreau added this to the 8.0 milestone Feb 27, 2020
@Carreau Carreau merged commit 9143dd9 into ipython:master Feb 27, 2020
@Carreau
Copy link
Copy Markdown
Member

Carreau commented Feb 27, 2020

Whooo !

@alexmojaki
Copy link
Copy Markdown
Contributor Author

Hooray!

Can you sort out choosing proper colors based on configuration?

@Carreau
Copy link
Copy Markdown
Member

Carreau commented Feb 27, 2020

Opened #12151 to track that.

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.

Proposal: highlight exact operation in tracebacks

2 participants