oso icon indicating copy to clipboard operation
oso copied to clipboard

SQL cells with variables revert to Python cells

Open ccerv1 opened this issue 3 months ago • 2 comments

This is likely a bug on the Marimo side, but filing here until we triage.

---

I've noticed this issue crop up in some of my notebooks, but haven't been able to replicate it consistently. I think (>50% confident) that it happens when you inject variables into Marimo SQL cells.

Here's an example:

SQL Block

image.png

When I switch from app view to notebook view, it renders the same cell as Python.

image.png

There is no change to the functionality of the cell, it's just confusing that the desired cell state is not maintained.

Recorded a short loom as well.

https://www.loom.com/share/b5729257743c44659ed0887fc88b8e98?sid=9c55fa7a-da69-4935-96b4-66623202ad3c

ccerv1 avatar Oct 02 '25 12:10 ccerv1

OSO-1068

linear[bot] avatar Oct 02 '25 12:10 linear[bot]

@ccerv1 you said you filed this in the Marimo repo? Can you link the issue here? I marked status as "Tracking".

It's P1 if Marimo fixes it, P2 if we have to fix it ourselves

ryscheng avatar Oct 15 '25 22:10 ryscheng