Skip to content

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

@maxslimmer

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'

Metadata

Metadata

Assignees

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