Description
The traceback for any error in a Marimo Python cell starts with:
Traceback (most recent call last):
File ".../site-packages/marimo/_runtime/executor.py", line 139, in execute_cell
return eval(cell.last_expr, glbls)
Cell marimo://<NOTEBOOK>#cell=<CELL>, line <LINE>, in <module>
As the first execute_cell traceback is always there it is not informative, and merely exposes a Marimo implementation details whereas the user would expect the cell to be the first traceback item
Suggested solution
Filter out the first traceback item of execute_cell
Are you willing to submit a PR?
Alternatives
No response
Additional context
No response