Skip to content

Global variables with same name not getting deleted #845

@yousufm97

Description

@yousufm97

Describe the bug

When creating two cells with global variables of the same name it complains, but even after deleting, it doesn't let you run the remaining cell. See below:

  • define variable in cell
Screenshot 2024-02-27 at 12 36 10 PM
  • define same variable in second cell
    • both errors show which cell it conflicts with
Screenshot 2024-02-27 at 12 36 26 PM
  • delete second cell
    • first cell still has error AND shows * for the offending cell, no cell number, just bullet point.
Screenshot 2024-02-27 at 12 36 45 PM
  • Delete remaining cell and make an entirely new cell with the same variable
    • still doesn't work, now shows two blank bullet points (one for each of the first two cells
Screenshot 2024-02-27 at 12 37 07 PM

Environment

{
"marimo": "0.2.8",
"OS": "Darwin",
"OS Version": "23.3.0",
"Processor": "arm",
"Python Version": "3.9.13",
"Binaries": {
"Chrome": "122.0.6261.69",
"Node": "--"
},
"Requirements": {
"black": "24.2.0",
"click": "8.1.7",
"importlib_resources": "6.1.2",
"jedi": "0.19.1",
"pymdown-extensions": "10.7",
"starlette": "0.37.1",
"tomlkit": "0.12.3",
"typing_extensions": "4.10.0",
"uvicorn": "0.27.1"
}
}

Code to reproduce

See above for description on reproducing. Its more steps then just code so that seemed better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions