Refactor and enhance Marimo session files with new functionality and improved structure

This commit is contained in:
2025-09-08 02:52:33 +02:00
parent c10a4ea114
commit 2e7c80bae8
6 changed files with 297 additions and 63 deletions
+38
View File
@@ -0,0 +1,38 @@
import marimo
__generated_with = "0.15.2"
app = marimo.App(width="medium")
@app.cell
def _():
import marimo as mo
return (mo,)
@app.cell
def _(mo):
mo.md(r"""# Shell: Ejecucion de comandos de terminal""")
return
@app.cell
def _():
import sys
import os
sys.path.append(os.path.join(os.environ["SNIPPETS_ROUTE"], "widgets"))
# Ahora ya puedes importar normal
from marimo_shell import shell, ShellWidget
return (ShellWidget,)
@app.cell
def _(ShellWidget):
console = ShellWidget(command="cd /; ls -la", run=True)
console
return
if __name__ == "__main__":
app.run()