You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made the following comments in an issue - #3762 (comment) that I logged earlier.
There is a bit of extra friction with that limitation. I've noticed that the markdown editor in marimo only works with r strings and not f or rf strings. Is there a reason for that limitation?
So instead of being able to type this into the markdown editor:
### Some Heading
<img src="public/SolarEnergyDistribution.png" width="600"/>
Some formula $F = ma$
I have to edit via the code editor as opposed to the markdown editor, i.e.
mo.md(rf"""
### Some Heading
{mo.image("public/SolarEnergyDistribution.png", width=600)}
Some formula $F = ma$
""")
Regarding the mo.md() string formatted, there we edge cases such as lack of auto-completion of the python code when parameterizing the markdown editor. We can maybe revisit this to add support for this, but for now this needs to happen in Python.
How about an option to override this in the GUI on a per-cell basis. If I have a cell with a lot of markdown and just need the odd bit of python code in it like the example above to call mo.image() then I'd be happy in this case to miss out python auto-completion in this cell.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I made the following comments in an issue - #3762 (comment) that I logged earlier.
There is a bit of extra friction with that limitation. I've noticed that the markdown editor in marimo only works with
r
strings and notf
orrf
strings. Is there a reason for that limitation?So instead of being able to type this into the markdown editor:
I have to edit via the code editor as opposed to the markdown editor, i.e.
@mscolnick replied with:
How about an option to override this in the GUI on a per-cell basis. If I have a cell with a lot of markdown and just need the odd bit of python code in it like the example above to call
mo.image()
then I'd be happy in this case to miss out python auto-completion in this cell.Beta Was this translation helpful? Give feedback.
All reactions