Skip to content
Discussion options

You must be logged in to vote

You can use such variables, but any variable prefaced by an underscore is local to the cell. This is useful because it allows you to minimize scope, and avoid variable name clashes etc.

This is how most Python users would expect name scoping to work in Marimo given underscore has always denoted "private".

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by qiuwei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants