marimo icon indicating copy to clipboard operation
marimo copied to clipboard

Debugging tools: better tracebacks with cell links

Open jamieray opened this issue 1 year ago • 1 comments

Description

Debug cells that failed to run. Sometimes they are using functions defined in other cells, or imported modules.

Suggested solution

Multiple features would be helpful, below:

Alternative

  1. %debug magic like Jupyter?
  2. More readable tracebacks? Currently traceback has cells named with a hash, I wonder if this could be mapped to the 'cell number' that is displayed e.g. in dependency explorer (and/or if there's an option to toggle display of cell names)
Traceback (most recent call last):
  Cell /tmp/marimo_73071/__marimo__cell_XQaa__output.py, line 1
    f
NameError: name 'f' is not defined
  1. Related, maybe better: when there's a traceback, make the trace levels in the notebook clickable to jump to the cell (line?) in question, as seems to already be supported when there's a cycle.

Additional context

No response

jamieray avatar Feb 28 '24 00:02 jamieray

All great ideas -- thank you!

akshayka avatar Feb 28 '24 05:02 akshayka

Closed by #1904 !!

dmadisetti avatar Jul 29 '24 15:07 dmadisetti