Files
Visualizaciones/__marimo__/session/D2_widget_diagramas.py.json
T
egutierrez 46573ccc8e Add drawing and visualization applications with Marimo framework
- Implement dibujar.py for drawing functionality with base64 and PIL image rendering.
- Create dibujar_retropaint.py for retro painting features using the Paint widget.
- Develop draw_data.py to visualize data with Scatter and Bar widgets, including lazy installation of dependencies.
- Add layout configuration for graphical representations in layouts/Graficos_plotly.grid.json.
- Enhance shell interaction with mejora_shell_mowidget.py, allowing local library imports and script execution.
- Introduce primera_prueba_shell_mowidget.py for testing shell commands and user input handling.
- Create prueba_de_embeddings.py for embedding visualizations using Sentence Transformers and dimensionality reduction techniques.
- Implement pygwalker_visualizaciones.py for interactive data exploration and visualization using Pygwalker.
- Add a sample bash script for user input and ping functionality in scripts/mi_script.sh.
2025-09-02 23:53:01 +02:00

73 lines
7.6 KiB
JSON

{
"version": "1",
"metadata": {
"marimo_version": "0.15.1"
},
"cells": [
{
"id": "PAsy",
"code_hash": "94e20b90f1aa8f0a214c914a85797064",
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": []
},
{
"id": "QMQS",
"code_hash": "546c6818067914a665e41ca6174ea5d2",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<marimo-ui-element object-id='QMQS-7' random-id='eb5a69bc-4fc7-1081-874f-ac0991454d14'><marimo-tabs data-initial-value='&quot;&quot;' data-label='null' data-tabs='[&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Editor&lt;/span&gt;&lt;/span&gt;&quot;, &quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Opciones&lt;/span&gt;&lt;/span&gt;&quot;, &quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Exportar&lt;/span&gt;&lt;/span&gt;&quot;]'><div data-kind='tab'><div style='display: flex;flex: 1;flex-direction: column;justify-content: flex-start;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><span class=\"markdown prose dark:prose-invert\"><h2 id=\"diagrama-d2\">Diagrama D2</h2></span><marimo-ui-element object-id='QMQS-0' random-id='515c547e-af68-9f27-6f5b-12a1fb564e13'><marimo-text-area data-initial-value='&quot;&#92;n# Ajustes de layout&#92;ndirection: right&#92;n&#92;n# Nodos&#92;napp: {&#92;n label: &#92;&quot;Ingesta&#92;&quot;&#92;n shape: rectangle&#92;n}&#92;ndb: {&#92;n label: &#92;&quot;PostgreSQL&#92;&quot;&#92;n shape: cylinder&#92;n}&#92;ndashboard: {&#92;n label: &#92;&quot;Metabase&#92;&quot;&#92;n}&#92;n&#92;n# Enlaces&#92;napp -&gt; db: &#92;&quot;escribe&#92;&quot;&#92;ndb -&gt; dashboard: &#92;&quot;lee&#92;&quot;&#92;n&quot;' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Definici&#92;u00f3n D2&lt;/span&gt;&lt;/span&gt;&quot;' data-placeholder='&quot;&quot;' data-disabled='false' data-debounce='true' data-full-width='true'></marimo-text-area></marimo-ui-element></div></div><div data-kind='tab'><div style='display: flex;flex: 1;flex-direction: column;justify-content: flex-start;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><div style='display: flex;flex: 1;flex-direction: row;justify-content: flex-start;align-items: normal;flex-wrap: nowrap;gap: 1remrem'><marimo-ui-element object-id='QMQS-1' random-id='60066a24-52f7-4c1c-3b5f-5998c196d1bd'><marimo-number data-initial-value='200' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;themeID (D2)&lt;/span&gt;&lt;/span&gt;&quot;' data-debounce='false' data-full-width='false' data-disabled='false'></marimo-number></marimo-ui-element><marimo-ui-element object-id='QMQS-2' random-id='a8b41a6c-15c2-807f-ccd0-15284534626d'><marimo-number data-initial-value='8' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Padding&lt;/span&gt;&lt;/span&gt;&quot;' data-debounce='false' data-full-width='false' data-disabled='false'></marimo-number></marimo-ui-element><marimo-ui-element object-id='QMQS-3' random-id='d742773d-b10c-aa0c-ee2d-6d31e98dc13c'><marimo-checkbox data-initial-value='false' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Sketch (boceto)&lt;/span&gt;&lt;/span&gt;&quot;' data-disabled='false'></marimo-checkbox></marimo-ui-element><marimo-ui-element object-id='QMQS-4' random-id='9e259bf8-24c8-041d-f89c-c933b14963cb'><marimo-checkbox data-initial-value='true' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Animar aristas&lt;/span&gt;&lt;/span&gt;&quot;' data-disabled='false'></marimo-checkbox></marimo-ui-element></div><span class=\"markdown prose dark:prose-invert\"><span class=\"paragraph\">Configura opciones del compilador D2.</span></span></div></div><div data-kind='tab'><div style='display: flex;flex: 1;flex-direction: column;justify-content: flex-start;align-items: normal;flex-wrap: nowrap;gap: 0.5rem'><div style='display: flex;flex: 1;flex-direction: row;justify-content: space-between;align-items: normal;flex-wrap: nowrap;gap: 1remrem'><marimo-ui-element object-id='QMQS-5' random-id='bbc2b31c-f8ef-0528-3dfd-9b9fc79dcef2'><marimo-text data-initial-value='&quot;diagrama.svg&quot;' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Archivo SVG&lt;/span&gt;&lt;/span&gt;&quot;' data-placeholder='&quot;&quot;' data-kind='&quot;text&quot;' data-full-width='false' data-disabled='false' data-debounce='true'></marimo-text></marimo-ui-element><marimo-ui-element object-id='QMQS-6' random-id='53760e40-5a18-d21c-2d72-4e22ccf274b1'><marimo-button data-initial-value='0' data-label='&quot;&lt;span class=&#92;&quot;markdown prose dark:prose-invert&#92;&quot;&gt;&lt;span class=&#92;&quot;paragraph&#92;&quot;&gt;Exportar SVG&lt;/span&gt;&lt;/span&gt;&quot;' data-kind='&quot;neutral&quot;' data-disabled='false' data-full-width='false'></marimo-button></marimo-ui-element></div></div></div></marimo-tabs></marimo-ui-element>"
}
}
],
"console": []
},
{
"id": "TnjD",
"code_hash": "41f9907bf972ce897a2ad67187d4cf9d",
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": []
},
{
"id": "sZfp",
"code_hash": "7bf29202f31b41c297a1460d533821d8",
"outputs": [
{
"type": "data",
"data": {
"text/html": "<marimo-ui-element object-id='sZfp-0' random-id='69b494f0-b519-c1e5-11cf-ca41c02da22a'><marimo-anywidget data-initial-value='{&quot;_svg&quot;: &quot;&quot;, &quot;diagram&quot;: &quot;direction: right&#92;nApp: { label: &#92;&quot;App&#92;&quot; }&#92;nCache: { label: &#92;&quot;Redis&#92;&quot;; shape: cylinder }&#92;nDB: { label: &#92;&quot;PostgreSQL&#92;&quot;; shape: cylinder }&#92;nETL: { label: &#92;&quot;ETL/ELT&#92;&quot; }&#92;nDWH: { label: &#92;&quot;DWH&#92;&quot;; shape: cylinder }&#92;nBI: { label: &#92;&quot;Metabase/Superset&#92;&quot; }&#92;n&#92;nApp -&gt; Cache: &#92;&quot;lecturas frecuentes&#92;&quot;&#92;nApp -&gt; DB: &#92;&quot;transacciones&#92;&quot;&#92;nDB -&gt; ETL: &#92;&quot;CDC/batch&#92;&quot;&#92;nETL -&gt; DWH: &#92;&quot;modelo anal&#92;u00edtico&#92;&quot;&#92;nDWH -&gt; BI: &#92;&quot;dashboards&#92;&quot;&quot;, &quot;options&quot;: {&quot;themeID&quot;: 200, &quot;pad&quot;: 8, &quot;sketch&quot;: false}}' data-label='null' data-js-url='&quot;./@file/904-9611-UDA4EMTF.js&quot;' data-js-hash='&quot;a14310193ea1f4589fc8ec0fcaffe6f2&quot;' data-css='&quot;.d2-widget{width:100%}.error{font-family:Consolas,monospace;padding:10px;color:#721c24;background-color:#f8d7da;border:1px solid #f5c6cb;border-radius:4px;margin:10px 0}&#92;n&quot;' data-buffer-paths='[]'></marimo-anywidget></marimo-ui-element>"
}
}
],
"console": []
},
{
"id": "vyjm",
"code_hash": "ba41c23d72ae2c108d2c457be33ca15c",
"outputs": [
{
"type": "data",
"data": {
"text/plain": ""
}
}
],
"console": []
}
]
}