-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #570 from Avaiga/doc/update-understanding-gui-tuto…
…rial Update understanding gui tutorial
- Loading branch information
Showing
29 changed files
with
301 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
4 changes: 1 addition & 3 deletions
4
docs/tutorials/complete_applications/understanding_gui/src/step_01.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from taipy import Gui | ||
|
||
# A dark mode is available in Taipy | ||
# However, we will use the light mode for the Getting Started | ||
Gui(page="# Getting started with *Taipy*").run(dark_mode=False) | ||
Gui(page="# Getting started with *Taipy*").run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
docs/tutorials/complete_applications/understanding_gui/step_01/ReadMe.md
This file was deleted.
Oops, something went wrong.
Binary file modified
BIN
+15.8 KB
(250%)
docs/tutorials/complete_applications/understanding_gui/step_01/result.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions
37
docs/tutorials/complete_applications/understanding_gui/step_01/step_01.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
> You can download the code for | ||
<a href="./../src/step_01.py" download>Step 1</a> | ||
or all the steps <a href="./../src/src.zip" download>here</a>. | ||
|
||
!!! warning "For Notebooks" | ||
|
||
The "Getting Started" Notebook is available [here](../../../../getting_started/getting-started-gui/getting_started.ipynb). In Taipy GUI, the process to execute a Jupyter Notebook is different from executing a Python Script. | ||
|
||
# Step 1: First Web page | ||
|
||
You only need one line of code to create your first Taipy web page. Just create a `Gui` object with a string and run it. | ||
|
||
In the console, you'll find a client link. All you need to do is copy and paste it into your web browser to open your first Taipy web client! | ||
|
||
|
||
```python | ||
from taipy import Gui | ||
|
||
Gui(page="# Getting started with *Taipy*").run() # use_reloader=True | ||
``` | ||
|
||
By default, the page won't refresh on its own after you make a code modification. | ||
|
||
If you want to alter this behavior, you can add `use_reloader=True` in the `.run()` method. This will cause | ||
the application to automatically reload when you make changes to a file in your application and save it. | ||
It's typically used in development mode. | ||
|
||
If you wish to run multiple servers concurrently, you can modify the server port number (5000 by default) in the `.run()` method. For example, `Gui(...).run(port=xxxx)`. Other options of the `.run()` can be found [here](../../../../manuals/gui/configuration.md/#configuring-the-gui-instance). | ||
|
||
|
||
Keep in mind that you have the option to format your text. Taipy uses Markdown syntax to style your text | ||
and more. Therefore, `#` creates a title, `##` makes a subtitle. | ||
Put your text in `*` for *italics* or in `**` to have it in **bold**. | ||
|
||
|
||
![First Web Page](result.png){ width=700 style="margin:auto;display:block;border: 4px solid rgb(210,210,210);border-radius:7px" } |
Oops, something went wrong.