You can download the code for this step here or all the steps here.
For Notebooks
The "Getting Started" Notebook is available here. 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. Create a Gui
object with a String and run it.
A client link will be displayed in the console. Please cut & paste it into a web browser to open your first Taipy web client!
from taipy import Gui
Gui(page="# Getting started with *Taipy*").run() # use_reloader=True
After a change in the code, the page will not reload itself by default.
To change this behavior, putting use_reloader=True
in the .run()
will reload the application when you modify a file in your application and save it. It can be used as a development mode.
If you want to run multiple servers simultaneously, you can change 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.
Note that you can style the text. Taipy uses the 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.