Changes for page Extension tvb-ext-xircuits
Last modified by paulapopa on 2023/03/24 08:17
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Content
-
... ... @@ -17,7 +17,7 @@ 17 17 18 18 == Installation == 19 19 20 -The extension can beinstalled using the official PyPi distribution ([[https:~~/~~/pypi.org/project/tvb-ext-xircuits/>>https://pypi.org/project/tvb-ext-xircuits/]]):20 +The extension can installed using the official PyPi distribution ([[https:~~/~~/pypi.org/project/tvb-ext-xircuits/>>https://pypi.org/project/tvb-ext-xircuits/]]): 21 21 22 22 (% class="box" %) 23 23 ((( ... ... @@ -28,58 +28,33 @@ 28 28 29 29 [[image:side.png]] 30 30 31 + 31 31 == **Usage** == 32 32 33 33 === **Step 1. Create a new Xircuits workflow** === 34 34 35 - Fromthe Jupyter Lab launcher,clickonhe**XircuitsFile**icon,asin thescreenshotbelow.36 +Using the Jupyter Lab launcher. You will notice that 2 components are already placed inside the workflow: the Start and the Finish components. They cannot be modified or deleted, and they represent the starting and finishing point of the workflow. 36 36 37 -[[image:newxircs.png]] 38 - 39 -A new file with the .xircuits extension will be generated under your current working directory. This is where you can start building the workflow diagram interactively. 40 - 41 -[[image:newfile.png]] 42 - 43 -You will notice that 2 components are already placed inside the workflow: the __Start__ and the __Finish__ components. They cannot be modified or deleted, and they represent the starting and finishing point of the workflow. 44 - 45 45 === **Step 2. Drag components into the workflow area** === 46 46 47 -Open the components tray, fromtheleft-sidebariconhighlightedbelow.40 +Open the components tray, browse through the components, select the one you wish to use and drag it into the workflow area. 48 48 49 -[[image:tray.png]] 50 - 51 -Now, you can browse through the components, select the one you wish to use, then drag and drop it into the workflow area. 52 - 53 -[[image:components.png]] 54 - 55 55 === **Step 3. Configure the components** === 56 56 57 -The components that are provided in this extensions are configurable, meaning you can set some parameters on almost every component. Someofthe parametersareliterals,whilesomeparametersareresultsofher components.44 +The components that are provided in this extensions are configurable, meaning you can set some parameters on almost every component. For this you need to open the //General// tab from the components tray and drag the appropriate //literal//: float, int, string, dict, etc. 58 58 59 -In case of primitives you need to open the //General// tab from the components tray and drag the appropriate //literal//: float, int, string, dict, etc. 60 - 61 -The parameters need to be linked to the inputs of the component by dragging and dropping a connection from the output port of a literal/component towards the corresponding input port of the other component (e.g. the gray connections in the screenshot below). 62 - 63 -[[image:diagr.png]] 64 - 65 65 === **Step 4. Make connections** === 66 66 67 -After dragging all your desired components /literalsin the workflow area, it's time to connect the components.48 +After dragging all your desired components in the workflow area, it's time to connect the components. 68 68 69 -First, link the __Start__node to the first component of your workflow. Then make the connections between all your components. The last component should be linked to the__Finish__node, to indicate the end of your workflow(e.g. the blue connections in the screenshot below). These connections will dictate the order of execution of the components in your workflow.50 +First, link the Start node to the first component of your workflow. Then make the connections between all your components. The last component should be linked to the Finish node, to indicate the end of your workflow. 70 70 71 -[[image:diagram.png]] 72 - 73 73 === **Step 5. Run the workflow** === 74 74 75 75 After connecting everything, you need to run the workflow to actually see its result. For this you can click on the Run button (▶), which will also implicitly compile the workflow. 76 76 77 -[[image:run.png]] 78 - 79 79 After clicking on Run, a new Jupyter Output window should appear in the bottom of your Jupyter Lab environment. Here you will see the output of your workflow, such as logs, static plots, etc. 80 80 81 -[[image:out.png]] 82 - 83 83 === **Step 6. Share your work*** === 84 84 85 85 This step is, of course, optional, but it is worth mentioning that sharing your workflows with others is extremely easy. By just saving and sharing your workflow (*.xircuits) file, anyone can access the entire workflow, see the exact connections that you made and receive the same configuration for the components.
- out.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.paulapopa - Size
-
... ... @@ -1,1 +1,0 @@ 1 -662.7 KB - Content