diff --git a/docs/manuals/studio/config/elements.md b/docs/manuals/studio/config/elements.md
index b691238ee..a364f8f41 100644
--- a/docs/manuals/studio/config/elements.md
+++ b/docs/manuals/studio/config/elements.md
@@ -1,246 +1,207 @@
Configuration elements defined in a configuration file are grouped
by type; each element type has a specific section in the
-"Taipy Configs" panel.
+**Taipy Configs** panel.
-# Data Nodes configuration
+## Data Nodes configuration
-The "Data Nodes" section list all the Data Node configuration defined in the selected
+The **Data Nodes** section list all the Data Node configuration defined in the selected
configuration file.
-## Creating a new Data Node configuration
+### Creating a new Data Node configuration
-Press the '+' sign that appears when you hover the title of the Data Nodes section of
-the "Taipy Configs" panel.
+Press the '+' sign that appears when you hover the title of the **Data Nodes** section of
+the **Taipy Configs** panel.
Taipy Studio will prompt you for an identifier for this new Data Node configuration
element.
Note that you cannot set the identifier of a new Data Node element to one
already used by another.
Default values are provided for the essential properties of the new Data Node configuration
-element: *storage_type* is set to "pickle" and *scope* is set to "SCENARIO:SCOPE".
+element: *storage_type* is set to "pickle", and *scope* is set to "SCENARIO:SCOPE".
The properties for the new element are displayed in the DETAILS section of the
-"Taipy Configs" panel.
+**Taipy Configs** panel.
-## Renaming a Data Node configuration
+### Renaming a Data Node configuration
-Right-click a Data Node identifier in the Data Node section and select the
-"Rename node" option.
-Note that you cannot set the new identifier of a Data Node element to one
-that is already used by another Data Node element.
+Right-click a Data Node identifier in the **Data Nodes** section and select the "Rename"
+option.
+Note that you cannot set the new identifier of a Data Node element to one that is already used by
+another Data Node element.
-The new name of a Data Node element is propagated to the Task configurations
-that reference it.
+The new name of a Data Node element is propagated to the Task configurations that reference it.
-## Deleting a Data Node configuration
+### Deleting a Data Node configuration
Right-click a Data Node identifier in the Data Node section and select the
-"Delete node from configuration" option.
+"Delete from configuration" option.
Taipy Studio will prompt you to confirm you really want to remove that
element from the configuration file.
-## Locate in the Graph View
+### Locate in the Graph View
-If a [Graph View](graphview.md) is active,
+If a [Graph View](graphview.md) is active and showing a Scenario configuration,
you add a specific Data Node configuration element to that view by selecting
the "Add/Show in active View" menu option that pops when you right-click the
relevant element identifier.
If that Data Node configuration element is already present in the Graph View,
-then the view is panned so you can spot it easily.
+the view is panned so you can spot it easily.
-## Properties
+### Properties
-The "Details" section will let you:
+The **Details** section will let you:
- Change the Data Node configuration identifier.
- Specify the storage type property.
- Specify the scope property.
- Add Data Node-specific properties and values that Taipy Core can use.
-# Tasks configuration
+## Tasks configuration
-The "Tasks" section list all the Task configuration elements defined in the selected
+The **Tasks** section lists all the Task configuration elements defined in the selected
configuration file.
-## Creating a new Task configuration
+### Creating a new Task configuration
-Press the '+' sign that appears when you hover the title of the Tasks section of the
-"Taipy Configs" panel.
+Press the '+' sign that appears when you hover the title of the **Tasks** section of the
+**Taipy Configs** panel.
Taipy Studio will prompt you for an identifier for this new Task configuration
element.
Note that you cannot set the identifier of a new Task element to one
already used by another.
Default values are provided for the essential properties of the new Task configuration
-element: *inputs* and *outputs* are set to an empty list and *skippable* is set to
+element: *inputs* and *outputs* are set to an empty list, and *skippable* is set to
"False:bool".
The properties for the new element are displayed in the DETAILS section of the
"Taipy Configs" panel.
-## Renaming a Task configuration
+### Renaming a Task configuration
-Right-click a Task identifier in the Tasks section and select the
-"Rename node" option.
-Note that you cannot set the new identifier of a Task element to one
-that is already used by another Task element.
+Right-click a Task identifier in the **Tasks** section and select the "Rename" option.
+Note that you cannot set the new identifier of a Task element to one that is already used by
+another Task element.
-The new name of a Task element is propagated to the Pipeline configurations
-that reference it.
+The new name of a Task element is propagated to the Scenario configurations that reference it.
-## Deleting a Task configuration
+### Deleting a Task configuration
-Right-click a Task identifier in the Tasks section and select the
-"Delete node from configuration" option.
+Right-click a Task element identifier in the **Tasks** section and select the
+"Delete from configuration" option.
Taipy Studio will prompt you to confirm you really want to remove that
element from the configuration file.
-## Locate in the Graph View
+### Locate in the Graph View
-If a [Graph View](graphview.md) is active,
+If a [Graph View](graphview.md) is active and showing a Scenario configuration,
you add a specific Task configuration element to that view by selecting
the "Add/Show in active View" menu option that pops when you right-click the
relevant element identifier.
Note that adding the Task configuration element to the Graph View also
-adds the dependent Data Node configuration elements that it depends on.
-
-If the Graph View represents a Pipeline configuration, then the Task
-configuration is added to that Pipeline configuration.
+adds the dependent Data Node configuration elements it depends on.
If that Task configuration element is already present in the Graph View,
-then the view is panned so you can spot it easily.
+then the view is panned so you can spot the Task element easily.
-## Properties
+### Properties
-The "Details" section will let you:
+The **Details** section will let you:
- Change the Task configuration identifier.
- Change the input and output Data Nodes used by this Task configuration.
You can pick the Data Node configurations from the list of
configured Data Nodes in the selected configuration file.
- Specify the function used by this Task configuration.
- You will select the module to locate the function, then the function
+ You will select the module to locate the function, then the name of the function
itself.
- Note that if you right-click the function name in the Details section,
+ If you right-click the function name in the **Details** section,
you can select the "Show Source" menu option. This opens an editor showing
the source code at the location where the function is defined.
- Specify whether this Task configuration is *skippable* or not.
-# Pipelines configuration
+## Scenarios configuration
-The "Pipelines" section list all the Pipeline configuration elements defined in the selected
+The **Scenarios** section lists all the Scenario configuration elements defined in the selected
configuration file.
-## Creating a new Pipeline configuration
+If a Scenario configuration element contains one or more sequences, its node can be expanded to
+reveal the Sequence elements the Scenario configuration defines.
+
+### Creating a new Scenario configuration
-Press the '+' sign that appears when you hover the title of the Pipelines section of the
-"Taipy Configs" panel.
-Taipy Studio will prompt you for an identifier for this new Pipeline configuration
+Press the '+' sign that appears when you hover the title of the **Scenarios** section of
+the **Taipy Configs** panel.
+Taipy Studio will prompt you for an identifier for this new Scenario configuration
element.
-Note that you cannot set the identifier of a new Pipeline element to one
+Note that you cannot set the identifier of a new Scenario element to one
already used by another.
-Default values are provided for the essential properties of the new Pipeline configuration
-element: *tasks* is set to an empty list.
+Default values are provided for the essential properties of the new Scenario configuration
+element: *sequences* is set to an empty list.
The properties for the new element are displayed in the DETAILS section of the
"Taipy Configs" panel.
-## Renaming a Pipeline configuration
+### Renaming a Scenario configuration
-Right-click a Pipeline identifier in the Pipelines section and select the
+Right-click a Scenario identifier in the **Scenarios** section and select the
"Rename node" option.
-Note that you cannot set the new identifier of a Pipeline element to one
+Note that you cannot set the new identifier of a Scenario element to one
already used by another.
-The new name of a Pipeline element is propagated to the Scenario configurations
-that reference it.
-
-## Deleting a Pipeline configuration
+### Deleting a Scenario configuration
-Right-click a Pipeline identifier in the Pipelines section and select the
-"Delete node from configuration" option.
+Right-click a Scenario identifier in the **Scenarios** section and select the
+"Delete from configuration" option.
Taipy Studio will prompt you to confirm you really want to remove that
element from the configuration file.
-## Showing in a Graph View
+### Showing in a Graph View
-Right-click a Pipeline identifier in the Pipelines section and select the
+Right-click a Scenario identifier in the **Scenarios** section and select the
"Show View" option.
-Taipy Studio will create a [Graph View](graphview.md) that represents
-the Pipeline configuration element you selected.
-
-## Locate in the Graph View
-
-If a [Graph View](graphview.md) is active,
-you add a specific Pipeline configuration element to that view by selecting
-the "Add/Show in active View" menu option that pops when you right-click the
-relevant element identifier.
-
-If the Graph View represents a Scenario configuration, then the Pipeline
-configuration is added to that Scenario configuration.
-
-If that Pipeline configuration element is already present in the Graph View,
-then the view is panned so you can spot it easily.
+Taipy Studio will create a [Graph View](graphview.md) representing the selected Scenario
+configuration element.
-## Properties
+The Graph View will represent all the configuration elements referenced by this Scenario
+configuration (all the dependent Task and Data Node configuration elements).
-The "Details" section will let you:
+### Adding a sequence
-- Change the Pipeline configuration identifier.
-- Change the Tasks used by this Pipeline configuration.
- You can pick the Task configurations from the list of configured
- Tasks in the selected configuration file.
-
-# Scenarios configuration
-
-The "Scenarios" section list all the Scenario configuration elements defined in the selected
-configuration file.
-
-## Creating a new Scenario configuration
-
-Press the '+' sign that appears when you hover the title of the Scenarios section of
-the "Taipy Configs" panel.
-Taipy Studio will prompt you for an identifier for this new Scenario configuration
+Press the '+' sign that appears next to a **Scenario** configuration name in the **Scenarios**
+section of the **Taipy Configs** panel.
+Taipy Studio will prompt you for an identifier for a new sequence in this Scenario configuration
element.
-Note that you cannot set the identifier of a new Scenario element to one
-already used by another.
+Note that you cannot set the identifier of a sequence to one already used in this Scenario
+configuration element.
-Default values are provided for the essential properties of the new Scenario configuration
-element: *pipelines* is set to an empty list.
-The properties for the new element are displayed in the DETAILS section of the
-"Taipy Configs" panel.
+### Renaming a sequence
-## Renaming a Scenario configuration
-
-Right-click a Scenario identifier in the Scenarios section and select the
-"Rename node" option.
-Note that you cannot set the new identifier of a Scenario element to one
-already used by another.
+Right-click a Sequence identifier in the list of child nodes of a Scenario element in the
+**Scenarios** section and select the "Rename" option.
+Note that you cannot set the new identifier of a sequence to one that is already used by the
+selected Scenario configuration element.
-## Deleting a Scenario configuration
+### Deleting a sequence
-Right-click a Scenario identifier in the Scenarios section and select the
-"Delete node from configuration" option.
+Right-click a Sequence identifier in the list of child nodes of a Scenario element in the
+**Scenarios** section and select the "Delete from configuration" option.
Taipy Studio will prompt you to confirm you really want to remove that
element from the configuration file.
-## Showing in a Graph View
+### Properties
-Right-click a Scenario identifier in the Scenarios section and select the
-"Show View" option.
-Taipy Studio will create a [Graph View](graphview.md) that represents
-the Scenario configuration element you selected.
+If a Scenario configuration element is selected in the **Scenarios** section, the **Details**
+section displays the details of that Scenario element and lets you:
+
+- Change the identifier of the Scenario configuration element.
+- Change the Tasks used by this Scenario configuration.
+ Selecting the value of the *tasks* field will prompt you to select the Tasks configuration
+ elements you want to reference from the Scenario configuration element.
-The Graph View will represent all the Pipeline configuration elements
-referenced by this Scenario configuration and all the dependent
-Task and Data Node configuration elements.
+If a sequence of a Scenario configuration element is selected in the **Scenarios** section, the
+**Details** section displays the details of that sequence and lets you:
-## Properties
+- Change the sequence identifier.
+- Change the Tasks used by this sequence.
-The "Details" section will let you:
-- Change the Scenario configuration identifier.
-- Change the Pipelines used by this Scenario configuration.
- You can pick the Pipeline configurations from the list of
- configured Pipelines in the selected configuration file.
-- Specify the frequency used by this Scenario configuration.
-- Specify comparator functions used by this Scenario configuration.
diff --git a/docs/manuals/studio/config/files.md b/docs/manuals/studio/config/files.md
index 55add542b..b8395c432 100644
--- a/docs/manuals/studio/config/files.md
+++ b/docs/manuals/studio/config/files.md
@@ -1,11 +1,11 @@
-The "Config Files" section holds the list of configuration files (`*.toml`) in your
+The **Config Files** section holds the list of configuration files (`*.toml`) in your
project. You will select the one you want to edit from that list.
This list shows the base names of all the configuration files. If two configuration files
have the same name (but are located in two different directories), the path to the directory
where these files belong will be displayed next to the base file name to avoid
confusion.
-Because the "Config Files" list is synchronized with the files included in your project,
+Because the **Config Files** list is synchronized with the files included in your project,
adding a configuration file is simply a matter of creating it from the Visual Studio
Code Explorer panel:
@@ -13,15 +13,17 @@ Code Explorer panel:
@@ -119,41 +106,32 @@ then we will create the Data Node and Task configuration elements using the After the Task configuration and all three Data Node configurations are created, we connect the Out ports to the appropriate In ports by dragging links. -## Creating the Pipeline configuration - -The Pipeline configuration element is created similarly. Once the element -appears in the Graph View, we connect its Out port to the In port of the Task -element to indicate that the "planning" task element is part of the -"production" pipeline: +Note how the Details section reflects the selected configuration element. -
- -
- -## Creating the Scenario configuration +### Creating the Scenario configuration -Similarly, we create the Scenario configuration element and connect its Out port -to the In port of the "production" pipeline to indicate that this Pipeline -configuration element is part of the "scenario_configuration" scenario: +Similarly, we create the Scenario configuration element and connect its Out port to the In port of +the "planning" task to indicate that this Task configuration element is part of the +"my_scenario" scenario:- +
-## Setting the configuration elements parameters +### Setting the configuration elements parameters You can select a configuration element from the Graph View and use the Details -section of the Taipy Configs pane.- +
After this final step, the configuration file can be saved from the Graph View @@ -172,14 +150,14 @@ if __name__ == "__main__": tp.Core().run() # Retrieve the scenario configuration from the Config - scenario_cfg = Config.scenarios["scenario_configuration"] + scenario_cfg = Config.scenarios["my_scenario"] # Create a scenario entity scenario = tp.create_scenario(scenario_cfg) # Submit the scenario tp.submit(scenario) ``` -## Changing the links +### Changing the links - To add a control point on a link, click the link where you want to create the control point, then drag the point where you want it. Release the diff --git a/docs/manuals/studio/config/index.md b/docs/manuals/studio/config/index.md index a335470b2..406143820 100644 --- a/docs/manuals/studio/config/index.md +++ b/docs/manuals/studio/config/index.md @@ -1,5 +1,3 @@ -# Building configurations - Applications that rely on [Taipy Core](../../core/index.md) need to define a [Configuration](../../core/config/index.md) where the data flow is described.@@ -23,43 +21,45 @@ runtime by Taipy applications as described in the ## Introduction -Taipy Studio has a dedicated panel called "Taipy Configs", where mostly everything +Taipy Studio has a dedicated panel called **Taipy Configs**, where almost everything happens. To open this panel, use the "View > Open View..." menu option and search for the view called "Taipy Configs". The view appears like this:
- +
This panel is split into several sections that let the user access all the configuration elements: -- Config Files: holds a list of configuration files (`*.toml`) that exist in the +- **Config Files**: holds a list of configuration files (`*.toml`) that exist in the project.
@@ -34,12 +34,10 @@ Here are the problems that Taipy Studio identifies:
- General TOML syntax errors from the "Even Better TOML" extension.
- "No reference to element 'XXX'." (Warning)
- The configuration element (Data Node, Task, or Pipeline) is not referenced
- by any other element.
+ The configuration element (Data Node or Task) is not referenced by any other element.
- "Element 'XXX' does not exist." (Error)
A configuration element identifier that does not exist is referenced by this
- configuration element (Data Node, Task, Pipeline, or Scenario).
+ configuration element (Data Node, Task, or Scenario).
- "Cannot find Python function: 'XXX'." (Error)
This Task configuration element uses a function name that does not exist.
A Quick Fix can create that function for you.
-
diff --git a/docs/manuals/studio/images/config-icon-add-pipeline.png b/docs/manuals/studio/images/config-icon-add-pipeline.png
deleted file mode 100644
index dbb970ed8..000000000
Binary files a/docs/manuals/studio/images/config-icon-add-pipeline.png and /dev/null differ
diff --git a/docs/manuals/studio/images/config_graphview_1.gif b/docs/manuals/studio/images/config_graphview_1.gif
index 11f32c190..483fd2c03 100644
Binary files a/docs/manuals/studio/images/config_graphview_1.gif and b/docs/manuals/studio/images/config_graphview_1.gif differ
diff --git a/docs/manuals/studio/images/config_graphview_2.gif b/docs/manuals/studio/images/config_graphview_2.gif
index 01894cafc..4d9a65042 100644
Binary files a/docs/manuals/studio/images/config_graphview_2.gif and b/docs/manuals/studio/images/config_graphview_2.gif differ
diff --git a/docs/manuals/studio/images/config_graphview_3.gif b/docs/manuals/studio/images/config_graphview_3.gif
index 9c6dfc707..48d00f7bd 100644
Binary files a/docs/manuals/studio/images/config_graphview_3.gif and b/docs/manuals/studio/images/config_graphview_3.gif differ
diff --git a/docs/manuals/studio/images/config_graphview_4.gif b/docs/manuals/studio/images/config_graphview_4.gif
deleted file mode 100644
index eb91bf1f9..000000000
Binary files a/docs/manuals/studio/images/config_graphview_4.gif and /dev/null differ
diff --git a/docs/manuals/studio/images/config_init.gif b/docs/manuals/studio/images/config_init.gif
index af1b72049..7c891fbd8 100644
Binary files a/docs/manuals/studio/images/config_init.gif and b/docs/manuals/studio/images/config_init.gif differ
diff --git a/docs/manuals/studio/images/config_overview.png b/docs/manuals/studio/images/config_overview.png
index 31a2d7baf..111562ed0 100644
Binary files a/docs/manuals/studio/images/config_overview.png and b/docs/manuals/studio/images/config_overview.png differ
diff --git a/docs/manuals/studio/images/config_panel.png b/docs/manuals/studio/images/config_panel.png
index 90ca1c55d..f92430168 100644
Binary files a/docs/manuals/studio/images/config_panel.png and b/docs/manuals/studio/images/config_panel.png differ
diff --git a/docs/manuals/studio/index.md b/docs/manuals/studio/index.md
index 97cdaaad4..65e22a167 100644
--- a/docs/manuals/studio/index.md
+++ b/docs/manuals/studio/index.md
@@ -1,5 +1,3 @@
-# Taipy Studio
-
Taipy Studio is an extension to [Visual Studio Code](https://code.visualstudio.com/)
that significantly accelerates the development of Taipy applications.
@@ -13,7 +11,7 @@ This tool addresses two major areas:
which depend on configuration elements.
Taipy Studio provides a graphical editor where you can create and configure
- the elements of your configurations stored in toml files that your Taipy
+ the elements of your configurations stored in TOML files that your Taipy
application can load at runtime. The editor can represent sequences and
scenarios as graphs, where nodes are DataNodes or Tasks.
@@ -33,7 +31,7 @@ This tool addresses two major areas:
text fragments.
It is also tricky to locate typos and errors in the Markdown text.
- Taipy Studio will spot these problems for you and report them in the
+ Taipy Studio will spot these problems and report them in the
*Problems* view. It can often provide a *Quick Fix* action that can solve
your syntactic problem in no time.
diff --git a/mkdocs.yml_template b/mkdocs.yml_template
index bc823d0ee..04d577dfc 100644
--- a/mkdocs.yml_template
+++ b/mkdocs.yml_template
@@ -184,9 +184,9 @@ nav:
- "On Databricks":
- "Deploying on Databricks": manuals/run-deploy/deploy/databricks/index.md
- "Taipy Studio":
- - manuals/studio/index.md
+ - "Taipy Studio": manuals/studio/index.md
- "Building configurations":
- - manuals/studio/config/index.md
+ - "Building configurations": manuals/studio/config/index.md
- "Managing configuration files": manuals/studio/config/files.md
- "Configuring elements": manuals/studio/config/elements.md
- "Graph views": manuals/studio/config/graphview.md