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.39k stars 158 forks source link

%reset magic #1716

Closed ericYH01 closed 4 days ago

ericYH01 commented 4 days ago

Description

Hi, I am a newbie for python, and feel great about marimo. I am having an issue that I have to change variable names when I'm practicing examples from books, otherwise the error of "name is defined" shows.

Suggested solution

I'm thinking perhaps you can add some magic commands, like %reset from Jupyter. Would be much more friendly for newbies.

Alternative

No response

Additional context

No response