-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
documentation: add helpers for marimo things to be shared across note…
…books (#3712) We want to have more than one notebook, and a consistent way of showing things in them. I think a helpers file would be a good way to do that.
- Loading branch information
1 parent
b943df3
commit a0d424d
Showing
2 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import marimo as mo | ||
|
||
|
||
def asm_html(asm: str) -> mo.Html: | ||
""" | ||
Returns a Marimo-optimised representation of the assembly code passed in. | ||
""" | ||
return mo.ui.code_editor(asm, language="python", disabled=True) |