Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support semicolon (;) as a way to suppress output #3726

Open
silky opened this issue Feb 8, 2025 · 0 comments
Open

Support semicolon (;) as a way to suppress output #3726

silky opened this issue Feb 8, 2025 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@silky
Copy link

silky commented Feb 8, 2025

Description

In Jupyter, if you have a cell that ends in a function call with a semicolon, the output is supressed:

5

vs

5;

Image

In Marimo, this is not the case:

Image

The only way to achieve the same result is with a dummy assignment:

_ = 5

which is clearly unpleasant.

Suggested solution

Follow Jupyter and interpret the ; on the last statement as a indication that the output should be suppressed.

Alternative

No response

Additional context

This was on marimo 0.9.14

@silky silky added the enhancement New feature or request label Feb 8, 2025
@mscolnick mscolnick added good first issue Good for newcomers help wanted Extra attention is needed labels Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants