Confusing UI behaviour for hiding code
Maintainers usually reply within 1 day
@manzt is already working on this.
Since Sep 3, 2026.
Assessment
This issue has not been assessed yet.
Description
Describe the bug
After you hide the code of a cell, clicking on it will auto expand it. However, when you do a search (ctrl+F), the code is automatically hidden again. A user typically expands a cell to search for information, hiding the code when you press ctrl+f is a confusing behaviour.
Also just a small feature suggestion, the output has a collapse and expand button, it will be great if we can have that for code too. Because if the first line of the code is empty, there is really no indication that there is some code in it. e..g
compared to:
Thank you!
Will you submit a PR?
- Yes
Environment
Environment
{
"marimo": "0.24.0",
"editable": false,
"location": "~/code/trialexp_notebook_learning/.venv/lib/python3.12/site-packages/marimo",
"OS": "Linux",
"OS Version": "6.14.0-33-generic",
"Processor": "x86_64",
"Python Version": "3.12.3",
"Locale": "en_US",
"Binaries": {
"Browser": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36 Edg/152.0.0.0",
"Node": "v24.8.0",
"uv": "0.12.9 (x86_64-unknown-linux-gnu)"
},
"Dependencies": {
"click": "8.1.7",
"docutils": "0.21.2",
"itsdangerous": "2.2.0",
"jedi": "0.19.1",
"markdown": "3.6",
"narwhals": "2.25.0",
"packaging": "24.1",
"psutil": "6.0.0",
"pygments": "2.21.0",
"pymdown-extensions": "11.0.2",
"pyyaml": "6.0.1",
"starlette": "0.41.3",
"tomlkit": "0.13.2",
"typing-extensions": "4.16.0",
"uvicorn": "0.30.1",
"websockets": "17.0.1"
},
"Optional Dependencies": {
"altair": "6.2.2",
"duckdb": "1.5.5",
"loro": "1.13.2",
"nbformat": "5.10.4",
"openai": "2.54.0",
"pandas": "2.1.4",
"polars": "1.44.1",
"pyarrow": "17.0.0",
"ruff": "0.16.5",
"sqlglot": "30.17.0"
},
"Experimental Flags": {}
}
Code to reproduce
No response
- Dominant language
- Python
- Stars
- 22.9k
- Forks
- 1.3k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 380
Getting set up
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.
More from marimo-team/marimo
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
marimo-team/marimo#12027 ·
Maintainers usually reply within 1 day
-
"Clamp all outputs" leaves cells without output marked `expand_output: true`Possibly taken @marthacryan claimed this 12 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
marimo-team/marimo#11768 · 1 assignee ·
Maintainers usually reply within 1 day
-
Cell referencing a variable from a "cancelled" cell runs and raises NameError instead of being blockedMay be free again @dmadisetti claimed this 33 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
marimo-team/marimo#11307 · 1 assignee ·
Maintainers usually reply within 1 day
-
molab
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
marimo-team/marimo#11298 · 1 comment ·
Maintainers usually reply within 1 day
-
Theme change does not affect terminal colorsMay be free again @CloudCorpRecords claimed this 36 days ago, and no pull request is open. Openneeds discussion
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
marimo-team/marimo#11244 · 4 comments ·
Maintainers usually reply within 1 day
All issues in marimo-team/marimo
Similar issues
-
run_gate loads a custom tasks file from outside the working directoryPossibly taken @Ru0k3 claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MakazhanAlpamys/Soup#3189 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
nautechsystems/nautilus_trader#5741 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
huggingface/datasets#9128 ·
Maintainers usually reply within 1 day