Skip to content

Assign a special name to the last console output. #1787

Description

@maxslimmer

Feature Request

I would be cool if you could access the last (and maybe second-to-last) values returned from debug console evaluations via a special name (like maybe "_" and "__"), similar to ipython and other interactive REPL.

> 2
2

> 1
1

> f"last expression: {_}, second-to-last: {__}"
'last expression: 1, second-to-last: 2'

Activity

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

Metadata

Metadata

Labels

needs reproIssue has not been reproduced yet

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions