modular / modular/modular

[Feature Request] Implicit Printing and Last Outputs in JupyterEnv

Open
#123 2 comments 2 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.