SQL cells with variables revert to Python cells
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
When I switch from app view to notebook view, it renders the same cell as Python.
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 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