marimo-team / marimo

A reactive notebook for Python — run reproducible experiments, execute as a script, deploy as an app, and version with git.
https://marimo.io
Apache License 2.0
5.31k stars 155 forks source link

Special variable name "__" not treated as local #1675

Open dmadisetti opened 6 days ago

dmadisetti commented 6 days ago

Describe the bug

I don't think this is really a bug / big issue, but opening an issue just to document it.

"__" is considered a global variable, and is not hidden from other cells.

I just caught it when very lazily assigning var names

Environment

head

Code to reproduce

https://marimo.app/l/1uelf3