[Feature Request] Implicit Printing and Last Outputs in JupyterEnv
Open
Nobody has claimed this yet.
enhancement
Initiative: REPL/Jupyter
mojo
mojo-repo
- Dominant language
- Mojo
- Stars
- 29.8k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
Request
Need Implicit Printing and accessing the last outputs using "_" and "__" in Playground
Motivation
For testing the language features using implicit printing and accessing last outputs in notebook environment helps a lot.
Description and Requirements
let x: Int = 2
x
outputs:
2
x * x
outputs:
4
_, __
outputs:
(4, 2)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Playground or JupyterEnv implementation that evaluates notebook inputs and displays expression results; the issue names no files or tests. Define completion against the examples: implicit output for expressions and access to the previous two outputs through _ and __, including the tuple example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100