From 7ef108bcb920c1a378386a7caf0bf5a904d56cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Santanch=C3=A8?= Date: Sat, 28 Sep 2024 08:05:00 -0300 Subject: [PATCH] update (model): Jupyter with PlantUML - properties --- model/basics/step-by-step.ipynb | 57 +++++++++++++++++++++++++++++---- 1 file changed, 50 insertions(+), 7 deletions(-) diff --git a/model/basics/step-by-step.ipynb b/model/basics/step-by-step.ipynb index 5ec1a14e..a6a75db8 100644 --- a/model/basics/step-by-step.ipynb +++ b/model/basics/step-by-step.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 2, + "execution_count": 1, "id": "27ce02ea-d456-4eb3-860c-64eb8665e250", "metadata": {}, "outputs": [], @@ -20,7 +20,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 2, "id": "4bc559a1-f44b-4ed8-a633-33f5ca1273b6", "metadata": {}, "outputs": [ @@ -28,7 +28,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "Writing output for /home/santanche/git/component2learn/model/basics/2eb61326-d47f-4210-9dc0-f7f37caa4d3f.uml to 2eb61326-d47f-4210-9dc0-f7f37caa4d3f.svg\n" + "Writing output for /home/santanche/git/component2learn/model/basics/b7711b3c-95c4-489f-9158-45d1882653c3.uml to b7711b3c-95c4-489f-9158-45d1882653c3.svg\n" ] }, { @@ -40,7 +40,7 @@ "" ] }, - "execution_count": 5, + "execution_count": 2, "metadata": {}, "output_type": "execute_result" } @@ -96,11 +96,54 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "id": "1c4ebaef-1c49-4c40-b3dd-e1164675431f", "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Writing output for /home/santanche/git/component2learn/model/basics/93f7d0e0-a4d3-46bd-9861-2fa543908ba8.uml to 93f7d0e0-a4d3-46bd-9861-2fa543908ba8.svg\n" + ] + }, + { + "data": { + "image/svg+xml": [ + "TableScatterPlotfile_pathxfieldyfieldtitleDataFlow" + ], + "text/plain": [ + "" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "%%plantuml\n", + "\n", + "@startuml\n", + "\n", + "!procedure $property($name)\n", + " portout $name\n", + "!endprocedure\n", + "\n", + "component Table {\n", + " $property(file_path)\n", + "}\n", + "[Table] -( DataFlow\n", + "\n", + "component ScatterPlot {\n", + " $property(xfield)\n", + " $property(yfield)\n", + " $property(title)\n", + "}\n", + "DataFlow - [ScatterPlot]\n", + "\n", + "@enduml" + ] } ], "metadata": {