thanhnew2001 commited on
Commit
a81b30e
·
1 Parent(s): 67dbc63

Update data.jsonl

Browse files
Files changed (1) hide show
  1. data.jsonl +185 -2
data.jsonl CHANGED
@@ -44,7 +44,6 @@
44
  {"text": "# Show an image with label and callback:\n<|{content}|image|label=this is an image|on_action=function_name|>"}
45
  {"text": "# Shows a message at a specified position between min and max:\n<|message|indicator|value={val}|min=0|max=100|>"}
46
  {"text": "# Defining a simple static menu:\n<|menu|lov=menu 1;menu 2|>"}
47
- {"text": "# Display a list of tuples:\n<|{sel}|selector|lov={[\"id1\", \"Label 1\"), (\"id2\", Icon(\"/images/icon.png\", \"Label 2\"),(\"id3\", \"Label 3\")]}|>"}
48
  {"text": "# Prevent status dismiss:\n<|{value}|status|without_close|>"}
49
  {"text": "# Show a table:\n<|{data}|table|>"}
50
  {"text": "# Dialog with page:\n<|{show_dialog}|dialog|page=page_name|>"}
@@ -53,6 +52,190 @@
53
  {"text": "# Content as block:\n<|Title|expandable|\n <|{some content}|>\n|>"}
54
  {"text": "# Default layout:\n<|layout|\n <|{some content}|>\n|>"}
55
  {"text": "# Pane with page:\n<|{show}|pane|page=page_name|>"}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  {"text": "# Plot Sales according to Date in a line chart:\n<|{data}|chart|type=lines|x=DATE|y=SALES|>"}
57
  {"text": "# Plot Sales according to Date in a line chart titled \"Sales according to Revenue\":\n<|{data}|chart|type=lines|x=DATE|x=SALES|title=SALES according to Revenue|>"}
58
  {"text": "# Plot Sales and Revenue according to Date:\n<|{data}|chart|type=lines|x=DATE|y[1]=SALES|y[2]=REVENUE|>"}
@@ -78,4 +261,4 @@
78
  {"text": "# Display a horizontal distribution of Sales and Revenue titled \"Sales and Revenue Distribution\":\n<|{data}|chart|type=histogram|y[1]=SALES|y[2]=REVENUE|title=SALES and Revenue Distribution|>"}
79
  {"text": "# Plot a pie chart of Sales by Date:\n<|{data}|chart|type=pie|values=SALES|labels=Date|>"}
80
  {"text": "# Draw a pie chart of Sales by Date titled \"Sales Pie Chart\":\n<|{data}|chart|type=pie|values=SALES|labels=Date|title=SALES Pie Chart|>"}
81
- {"text": "# Plot a pie chart of Revenue by Date:\n<|{data}|chart|type=pie|values=REVENUE|labels=Date|>"}
 
44
  {"text": "# Show an image with label and callback:\n<|{content}|image|label=this is an image|on_action=function_name|>"}
45
  {"text": "# Shows a message at a specified position between min and max:\n<|message|indicator|value={val}|min=0|max=100|>"}
46
  {"text": "# Defining a simple static menu:\n<|menu|lov=menu 1;menu 2|>"}
 
47
  {"text": "# Prevent status dismiss:\n<|{value}|status|without_close|>"}
48
  {"text": "# Show a table:\n<|{data}|table|>"}
49
  {"text": "# Dialog with page:\n<|{show_dialog}|dialog|page=page_name|>"}
 
52
  {"text": "# Content as block:\n<|Title|expandable|\n <|{some content}|>\n|>"}
53
  {"text": "# Default layout:\n<|layout|\n <|{some content}|>\n|>"}
54
  {"text": "# Pane with page:\n<|{show}|pane|page=page_name|>"}
55
+ {"text": "# Display df_display in an expandable\n<|Display Table|expandable|expanded=False|"}
56
+ {"text": "# Create a Analyze button\n<|Analyze|button|on_action=analyze_data|label=Analyze|>"}
57
+ {"text": "# Create a text input for the note\n<|{note}|input|multiline|label=Note|class_name=fullwidth|>"}
58
+ {"text": "# Insert a line break\n<br/>"}
59
+ {"text": "# Display plot\n<center><|{plot}|image|height=400px|></center>"}
60
+ {"text": "# Display plot from file location\n<|{file_location}|image|width=500px|height=500px|class_name=img|>"}
61
+ {"text": "# Create a slider to adjust volume\n<|{volume}|slider|min=0|max=100|continuous=False|on_change=adjust_volume|>"}
62
+ {"text": "# Slider dx_threshold\n<|{dx_threshold}|slider|min=0|max=10|continuous=False|on_change=update_threshold|>"}
63
+ {"text": "# Create a toggle button\n<|{is_enabled}|toggle|lov=Off;On|>"}
64
+ {"text": "# Create a dropdown to select between Option X, Option Y, and Option Z\n<|{option}|selector|lov=Option X;Option Y;Option Z|dropdown|>"}
65
+ {"text": "# Create a date picker\n<|{selected_date}|date|>"
66
+ {"text": "# Date picker\n<|{selected_date}|date|>"
67
+ {"text": "# Create a gauge to visualize value\n<|status|indicator|value={progress}|min=0|max=100|>"}
68
+ {"text": "# Create and initialize a page:\nfrom taipy import Gui\nGui("# My Dashboard")"}
69
+ {"text": "# Define a page variable and initialize it:\nmd_content = "# My Dashboard"\nGui(md_content)"}
70
+ {"text": "# Define 2 pages and set them up:\ncontent_pages = {\n 'overview': Markdown("# Overview"),\n 'details': Markdown("# Details")\n}\nGui(pages=content_pages)"}
71
+ {"text": "# Set up a multi-page application:\nfrom taipy import Gui\n\n root_content="# Welcome to the App"\n page1_content="# Page 1"\n page2_content="# Page 2"\n\n pages_dict = {\n "/": root_content,\n "page1": page1_content,\n "page2": page2_content\n }\n Gui(pages=pages_dict).run()"}
72
+ {"text": "# Set up a multi-page application with content placeholder:\n from taipy import Gui\n\n root_content="""#\n Multi-page application\n\n\n This app was built using Taipy.\n """\n page1_content="# Page 1"\n page2_content="# Page 2"\n\n pages_dict = {\n "/": root_content,\n "page1": page1_content,\n "page2": page2_content\n }\n Gui(pages=pages_dict).run()"}
73
+ {"text": "# Create a dialog with Markdown content:\n dialog_content="""\n <|{is_visible}|dialog|\n Please enter your name:\n <|{user_name}|input|>\n |>"""\n Gui(dialog_content).run()"}
74
+ {"text": "# Set up a partial page:\n gui_instance = Gui()\n user_prompt = gui_instance.add_partial(\n """\n Please enter your name:\n <|{user_name}|input|>\n """\n )\n gui_instance.run()"}
75
+ {"text": "# Display a calculated result:\n<|{result}|>"}
76
+ {"text": "# Format the value with 2 decimal points:\n<|{value}|text|format=%.2f|>"}
77
+ {"text": "# Create a button with the label 'Click Me':\n<|Click Me|button|>"}
78
+ {"text": "# Create a Save button:\n<|Save|button|>"}
79
+ {"text": "# Create a Cancel button and set the action function name:\n<|Cancel|button|on_action=cancel_action_function|>"}
80
+ {"text": "# Create a Cancel button with cancel_handler function:\n<|Cancel|button|on_action=cancel_handler|>"}
81
+ {"text": "# Create an input field for username:\n<|{username}|input|>"}
82
+ {"text": "# Create an input field for location:\n<|{location}|input|>"}
83
+ {"text": "# Create a numeric field for age:\n<|{age}|number|>"}
84
+ {"text": "# Create a slider for value between 1 and 10:\n<|{rating}|slider|min=1|max=10|>"}
85
+ {"text": "# Create a set of toggle buttons for Option 1, Option 2, Option 3:\n<|{choice}|toggle|lov=Option 1;Option 2;Option 3|>"}
86
+ {"text": "# Create a toggle control to select a specific category:\n<|{category_sel}|toggle|lov={categories}|type=Category|adapter={lambda c: (c.id, c.name)}|>"}
87
+ {"text": "# Create a date picker:\n<|{event_date}|date|>"}
88
+ {"text": "# Create a date picker without time:\n<|{event_date}|date|not with_time|>"}
89
+ {"text": "# Create a date picker with only date:\n<|{event_date}|date|not with_time|>"}
90
+ {"text": "# Create a file download link:\n<|{document}|file_download|>"}
91
+ {"text": "# Create a file download link with action:\n<|{document}|file_download|label=Download Document|on_action=download_file|name=file_name|>"}
92
+ {"text": "# Create a file download link without preview:\n<|{document}|file_download|bypass_preview=False|>"}
93
+ {"text": "# Create an auto download file link:\n<|{document}|file_download|auto|>"}
94
+ {"text": "# Create a file selector:\n<|{selected_file}|file_selector|>"}
95
+ {"text": "# Create a file selector with label and action:\n<|{selected_file}|file_selector|label=Select File|on_action=file_selected|extensions=.csv,.xlsx|drop_message=Drop file here|>"}
96
+ {"text": "# Create a multiple file uploader:\n<|{selected_files}|file_selector|multiple|>"}
97
+ {"text": "# Show an illustration:\n<|{illustration}|image|>"}
98
+ {"text": "# Show an image with description and callback:\n<|{picture}|image|label=This is a picture|on_action=image_clicked|>"}
99
+ {"text": "# Display a message at a specified position between min and max:\n<|status|indicator|value={percentage}|min=0|max=100|>"}
100
+ {"text": "# Define a basic static menu:\n<|menu|lov=menu_item1;menu_item2|>"}
101
+ {"text": "# Display df_results in an expandable\n<|Results Table|expandable|expanded=False|"}
102
+ {"text": "# Create a Generate summary button\n<|Generate summary|button|on_action=generate_summary|label=Generate summary|>"}
103
+ {"text": "# Create a text input for the article\n<|{article}|input|multiline|label=Resulting article|class_name=fullwidth|>"}
104
+ {"text": "# Insert a line break\n<br/>"}
105
+ {"text": "# Display chart\n<center><|{chart}|image|height=400px|></center>"}
106
+ {"text": "# Display chart from file path\n<|{file_path}|image|width=500px|height=500px|class_name=img|>"}
107
+ {"text": "# Create a slider to adjust zoom level\n<|{zoom_level}|slider|min=1|max=5|continuous=False|on_change=adjust_zoom|>"}
108
+ {"text": "# Slider dx_threshold\n<|{dx_threshold}|slider|min=0|max=10|continuous=False|on_change=update_threshold|>"}
109
+ {"text": "# Create a toggle switch\n<|{state}|toggle|lov=Off;On;Auto|>"}
110
+ {"text": "# Create a dropdown to select between X, Y, and Z\n<|{axis}|selector|lov=X;Y;Z|dropdown|>"}
111
+ {"text": "# Create a date picker\n<|{selected_date}|date|>"
112
+ {"text": "# Date picker\n<|{selected_date}|date|>"
113
+ {"text": "# Create a gauge to visualize value\n<|status|indicator|value={progress}|min=0|max=100|>"}
114
+ {"text": "# Create and initialize a page:\nfrom taipy import Gui\nGui("# My Page Title")"}
115
+ {"text": "# Define a page variable and initialize it:\nmd_content = "# My Page Title"\nGui(md_content)"}
116
+ {"text": "# Define 2 pages and set them up:\ncontent_pages = {\n 'first_page': Markdown("# Introduction"),\n 'second_page': Markdown("# Advanced Topics")\n}\nGui(pages=content_pages)"}
117
+ {"text": "# Set up a multi-page application:\nfrom taipy import Gui\n\n root_content="# Welcome to the App"\n page1_content="# This is Page 1"\n page2_content="# This is Page 2"\n\n pages_dict = {\n "/": root_content,\n "page1": page1_content,\n "page2": page2_content\n }\n Gui(pages=pages_dict).run()"}
118
+ {"text": "# Set up a multi-page application with content placeholder:\n from taipy import Gui\n\n root_content="""#\n Multi-page application\n\n\n This app was built using Taipy.\n """\n page1_content="# Page 1"\n page2_content="# Page 2"\n\n pages_dict = {\n "/": root_content,\n "page1": page1_content,\n "page2": page2_content\n }\n Gui(pages=pages_dict).run()"}
119
+ {"text": "# Create a dialog with Markdown content:\n dialog_content="""\n <|{is_visible}|dialog|\n Please enter your name:\n <|{user_name}|input|>\n |>"""\n Gui(dialog_content).run()"}
120
+ {"text": "# Set up a partial page:\n gui_instance = Gui()\n user_prompt = gui_instance.add_partial(\n """\n Please enter your name:\n <|{user_name}|input|>\n """\n )\n gui_instance.run()"}
121
+ {"text": "# Display a calculated result:\n<|{result}|>"}
122
+ {"text": "# Format the value with 2 decimal points:\n<|{value}|text|format=%.2f|>"}
123
+ {"text": "# Create a button with the label 'Click Me':\n<|Click Me|button|>"}
124
+ {"text": "# Create a Save button:\n<|Save|button|>"}
125
+ {"text": "# Create a Cancel button and set the action function name:\n<|Cancel|button|on_action=cancel_action_function|>"}
126
+ {"text": "# Create a Cancel button with cancel_handler function:\n<|Cancel|button|on_action=cancel_handler|>"}
127
+ {"text": "# Create an input field for username:\n<|{username}|input|>"}
128
+ {"text": "# Create an input field for location:\n<|{location}|input|>"}
129
+ {"text": "# Create a numeric field for age:\n<|{age}|number|>"}
130
+ {"text": "# Create a slider for value between 1 and 10:\n<|{rating}|slider|min=1|max=10|>"}
131
+ {"text": "# Create a set of toggle buttons for Option 1, Option 2, Option 3:\n<|{choice}|toggle|lov=Option 1;Option 2;Option 3|>"}
132
+ {"text": "# Create a toggle control to select a specific category:\n<|{category_sel}|toggle|lov={categories}|type=Category|adapter={lambda c: (c.id, c.name)}|>"}
133
+ {"text": "# Create a date picker:\n<|{event_date}|date|>"}
134
+ {"text": "# Create a date picker without time:\n<|{event_date}|date|not with_time|>"}
135
+ {"text": "# Create a date picker with only date:\n<|{event_date}|date|not with_time|>"}
136
+ {"text": "# Create a file download link:\n<|{document}|file_download|>"}
137
+ {"text": "# Create a file download link with action:\n<|{document}|file_download|label=Download Document|on_action=download_file|name=file_name|>"}
138
+ {"text": "# Create a file download link without preview:\n<|{document}|file_download|bypass_preview=False|>"}
139
+ {"text": "# Create an auto download file link:\n<|{document}|file_download|auto|>"}
140
+ {"text": "# Create a file selector:\n<|{selected_file}|file_selector|>"}
141
+ {"text": "# Create a file selector with label and action:\n<|{selected_file}|file_selector|label=Select File|on_action=file_selected|extensions=.csv,.xlsx|drop_message=Drop file here|>"}
142
+ {"text": "# Create a multiple file uploader:\n<|{selected_files}|file_selector|multiple|>"}
143
+ {"text": "# Show an illustration:\n<|{illustration}|image|>"}
144
+ {"text": "# Show an image with description and callback:\n<|{picture}|image|label=This is a picture|on_action=image_clicked|>"}
145
+ {"text": "# Display a message at a specified position between min and max:\n<|status|indicator|value={percentage}|min=0|max=100|>"}
146
+ {"text": "# Define a basic static menu:\n<|menu|lov=menu_item1;menu_item2|>"}
147
+ {"text": "# Display df_output in an expandable\n<|Output Table|expandable|expanded=False|"}
148
+ {"text": "# Create a Visualize button\n<|Visualize|button|on_action=visualize_data|label=Visualize|>"}
149
+ {"text": "# Create a text input for the description\n<|{description}|input|multiline|label=Description|class_name=fullwidth|>"}
150
+ {"text": "# Insert a line break\n<br/>"}
151
+ {"text": "# Display diagram\n<center><|{diagram}|image|height=400px|></center>"}
152
+ {"text": "# Display diagram from file path\n<|{diagram_path}|image|width=500px|height=500px|class_name=img|>"}
153
+ {"text": "# Create a slider to adjust brightness\n<|{brightness}|slider|min=0|max=100|continuous=False|on_change=adjust_brightness|>"}
154
+ {"text": "# Slider threshold\n<|{threshold}|slider|min=0|max=10|continuous=False|on_change=update_threshold|>"}
155
+ {"text": "# Create a toggle button\n<|{is_enabled}|toggle|lov=Off;On|>"}
156
+ {"text": "# Create a dropdown to select between Choice A, Choice B, and Choice C\n<|{choice}|selector|lov=Choice A;Choice B;Choice C|dropdown|>"}
157
+ {"text": "# Create a date picker\n<|{selected_date}|date|>"
158
+ {"text": "# Date picker\n<|{selected_date}|date|>"
159
+ {"text": "# Create a gauge to visualize value\n<|status|indicator|value={progress}|min=0|max=100|>"}
160
+ {"text": "# Create and initialize a page:\nfrom taipy import Gui\nGui("# Dashboard")"}
161
+ {"text": "# Define a page variable and initialize it:\nmd_content = "# Dashboard"\nGui(md_content)"}
162
+ {"text": "# Define 2 pages and set them up:\ncontent_pages = {\n 'overview': Markdown("# Overview"),\n 'details': Markdown("# Details")\n}\nGui(pages=content_pages)"}
163
+ {"text": "# Set up a multi-page application:\nfrom taipy import Gui\n\n root_content="# Welcome to the App"\n page1_content="# Page 1"\n page2_content="# Page 2"\n\n pages_dict = {\n "/": root_content,\n "page1": page1_content,\n "page2": page2_content\n }\n Gui(pages=pages_dict).run()"}
164
+ {"text": "# Set up a multi-page application with content placeholder:\n from taipy import Gui\n\n root_content="""#\n Multi-page application\n\n\n This app was built using Taipy.\n """\n page1_content="# Page 1"\n page2_content="# Page 2"\n\n pages_dict = {\n "/": root_content,\n "page1": page1_content,\n "page2": page2_content\n }\n Gui(pages=pages_dict).run()"}
165
+ {"text": "# Create a dialog with Markdown content:\n dialog_content="""\n <|{is_visible}|dialog|\n Please enter your name:\n <|{user_name}|input|>\n |>"""\n Gui(dialog_content).run()"}
166
+ {"text": "# Set up a partial page:\n gui_instance = Gui()\n user_prompt = gui_instance.add_partial(\n """\n Please enter your name:\n <|{user_name}|input|>\n """\n )\n gui_instance.run()"}
167
+ {"text": "# Display a calculated result:\n<|{result}|>"}
168
+ {"text": "# Format the value with 2 decimal points:\n<|{value}|text|format=%.2f|>"}
169
+ {"text": "# Create a button with the label 'Click Me':\n<|Click Me|button|>"}
170
+ {"text": "# Create a Save button:\n<|Save|button|>"}
171
+ {"text": "# Create a Cancel button and set the action function name:\n<|Cancel|button|on_action=cancel_action_function|>"}
172
+ {"text": "# Create a Cancel button with cancel_handler function:\n<|Cancel|button|on_action=cancel_handler|>"}
173
+ {"text": "# Create an input field for username:\n<|{username}|input|>"}
174
+ {"text": "# Create an input field for location:\n<|{location}|input|>"}
175
+ {"text": "# Create a numeric field for age:\n<|{age}|number|>"}
176
+ {"text": "# Create a slider for value between 1 and 10:\n<|{rating}|slider|min=1|max=10|>"}
177
+ {"text": "# Create a set of toggle buttons for Option 1, Option 2, Option 3:\n<|{choice}|toggle|lov=Option 1;Option 2;Option 3|>"}
178
+ {"text": "# Create a toggle control to select a specific category:\n<|{category_sel}|toggle|lov={categories}|type=Category|adapter={lambda c: (c.id, c.name)}|>"}
179
+ {"text": "# Create a date picker:\n<|{event_date}|date|>"}
180
+ {"text": "# Create a date picker without time:\n<|{event_date}|date|not with_time|>"}
181
+ {"text": "# Create a date picker with only date:\n<|{event_date}|date|not with_time|>"}
182
+ {"text": "# Create a file download link:\n<|{document}|file_download|>"}
183
+ {"text": "# Create a file download link with action:\n<|{document}|file_download|label=Download Document|on_action=download_file|name=file_name|>"}
184
+ {"text": "# Create a file download link without preview:\n<|{document}|file_download|bypass_preview=False|>"}
185
+ {"text": "# Create an auto download file link:\n<|{document}|file_download|auto|>"}
186
+ {"text": "# Create a file selector:\n<|{selected_file}|file_selector|>"}
187
+ {"text": "# Create a file selector with label and action:\n<|{selected_file}|file_selector|label=Select File|on_action=file_selected|extensions=.csv,.xlsx|drop_message=Drop file here|>"}
188
+ {"text": "# Create a multiple file uploader:\n<|{selected_files}|file_selector|multiple|>"}
189
+ {"text": "# Show an illustration:\n<|{illustration}|image|>"}
190
+ {"text": "# Show an image with description and callback:\n<|{picture}|image|label=This is a picture|on_action=image_clicked|>"}
191
+ {"text": "# Display a message at a specified position between min and max:\n<|status|indicator|value={percentage}|min=0|max=100|>"}
192
+ {"text": "# Define a basic static menu:\n<|menu|lov=menu_item1;menu_item2|>"}
193
+ {"text": "# Display df_display in an expandable\n<|Display Data|expandable|expanded=False|"}
194
+ {"text": "# Create an Explore button\n<|Explore|button|on_action=explore_data|label=Explore|>"}
195
+ {"text": "# Create a text input for the notes\n<|{notes}|input|multiline|label=Notes|class_name=fullwidth|>"}
196
+ {"text": "# Insert a line break\n<br/>"}
197
+ {"text": "# Display visualization\n<center><|{visualization}|image|height=400px|></center>"}
198
+ {"text": "# Display visualization from file path\n<|{file_path}|image|width=500px|height=500px|class_name=img|>"}
199
+ {"text": "# Create a slider to adjust contrast\n<|{contrast}|slider|min=0|max=100|continuous=False|on_change=adjust_contrast|>"}
200
+ {"text": "# Slider threshold\n<|{threshold}|slider|min=0|max=10|continuous=False|on_change=update_threshold|>"}
201
+ {"text": "# Create a toggle button\n<|{is_enabled}|toggle|lov=Off;On|>"}
202
+ {"text": "# Create a dropdown to select between Option X, Option Y, and Option Z\n<|{option}|selector|lov=Option X;Option Y;Option Z|dropdown|>"}
203
+ {"text": "# Create a date picker\n<|{selected_date}|date|>"
204
+ {"text": "# Date picker\n<|{selected_date}|date|>"
205
+ {"text": "# Create a gauge to visualize value\n<|status|indicator|value={progress}|min=0|max=100|>"}
206
+ {"text": "# Create and initialize a page:\nfrom taipy import Gui\nGui("# Data Overview")"}
207
+ {"text": "# Define a page variable and initialize it:\nmd_content = "# Data Overview"\nGui(md_content)"}
208
+ {"text": "# Define 2 pages and set them up:\ncontent_pages = {\n 'overview': Markdown("# Overview"),\n 'details': Markdown("# Details")\n}\nGui(pages=content_pages)"}
209
+ {"text": "# Set up a multi-page application:\nfrom taipy import Gui\n\n root_content="# Welcome to the App"\n page1_content="# Page 1"\n page2_content="# Page 2"\n\n pages_dict = {\n "/": root_content,\n "page1": page1_content,\n "page2": page2_content\n }\n Gui(pages=pages_dict).run()"}
210
+ {"text": "# Set up a multi-page application with content placeholder:\n from taipy import Gui\n\n root_content="""#\n Multi-page application\n\n\n This app was built using Taipy.\n """\n page1_content="# Page 1"\n page2_content="# Page 2"\n\n pages_dict = {\n "/": root_content,\n "page1": page1_content,\n "page2": page2_content\n }\n Gui(pages=pages_dict).run()"}
211
+ {"text": "# Create a dialog with Markdown content:\n dialog_content="""\n <|{is_visible}|dialog|\n Please enter your name:\n <|{user_name}|input|>\n |>"""\n Gui(dialog_content).run()"}
212
+ {"text": "# Set up a partial page:\n gui_instance = Gui()\n user_prompt = gui_instance.add_partial(\n """\n Please enter your name:\n <|{user_name}|input|>\n """\n )\n gui_instance.run()"}
213
+ {"text": "# Display a calculated result:\n<|{result}|>"}
214
+ {"text": "# Format the value with 2 decimal points:\n<|{value}|text|format=%.2f|>"}
215
+ {"text": "# Create a button with the label 'Click Me':\n<|Click Me|button|>"}
216
+ {"text": "# Create a Save button:\n<|Save|button|>"}
217
+ {"text": "# Create a Cancel button and set the action function name:\n<|Cancel|button|on_action=cancel_action_function|>"}
218
+ {"text": "# Create a Cancel button with cancel_handler function:\n<|Cancel|button|on_action=cancel_handler|>"}
219
+ {"text": "# Create an input field for username:\n<|{username}|input|>"}
220
+ {"text": "# Create an input field for location:\n<|{location}|input|>"}
221
+ {"text": "# Create a numeric field for age:\n<|{age}|number|>"}
222
+ {"text": "# Create a slider for value between 1 and 10:\n<|{rating}|slider|min=1|max=10|>"}
223
+ {"text": "# Create a set of toggle buttons for Option 1, Option 2, Option 3:\n<|{choice}|toggle|lov=Option 1;Option 2;Option 3|>"}
224
+ {"text": "# Create a toggle control to select a specific category:\n<|{category_sel}|toggle|lov={categories}|type=Category|adapter={lambda c: (c.id, c.name)}|>"}
225
+ {"text": "# Create a date picker:\n<|{event_date}|date|>"}
226
+ {"text": "# Create a date picker without time:\n<|{event_date}|date|not with_time|>"}
227
+ {"text": "# Create a date picker with only date:\n<|{event_date}|date|not with_time|>"}
228
+ {"text": "# Create a file download link:\n<|{document}|file_download|>"}
229
+ {"text": "# Create a file download link with action:\n<|{document}|file_download|label=Download Document|on_action=download_file|name=file_name|>"}
230
+ {"text": "# Create a file download link without preview:\n<|{document}|file_download|bypass_preview=False|>"}
231
+ {"text": "# Create an auto download file link:\n<|{document}|file_download|auto|>"}
232
+ {"text": "# Create a file selector:\n<|{selected_file}|file_selector|>"}
233
+ {"text": "# Create a file selector with label and action:\n<|{selected_file}|file_selector|label=Select File|on_action=file_selected|extensions=.csv,.xlsx|drop_message=Drop file here|>"}
234
+ {"text": "# Create a multiple file uploader:\n<|{selected_files}|file_selector|multiple|>"}
235
+ {"text": "# Show an illustration:\n<|{illustration}|image|>"}
236
+ {"text": "# Show an image with description and callback:\n<|{picture}|image|label=This is a picture|on_action=image_clicked|>"}
237
+ {"text": "# Display a message at a specified position between min and max:\n<|status|indicator|value={percentage}|min=0|max=100|>"}
238
+ {"text": "# Define a basic static menu:\n<|menu|lov=menu_item1;menu_item2|>"}
239
  {"text": "# Plot Sales according to Date in a line chart:\n<|{data}|chart|type=lines|x=DATE|y=SALES|>"}
240
  {"text": "# Plot Sales according to Date in a line chart titled \"Sales according to Revenue\":\n<|{data}|chart|type=lines|x=DATE|x=SALES|title=SALES according to Revenue|>"}
241
  {"text": "# Plot Sales and Revenue according to Date:\n<|{data}|chart|type=lines|x=DATE|y[1]=SALES|y[2]=REVENUE|>"}
 
261
  {"text": "# Display a horizontal distribution of Sales and Revenue titled \"Sales and Revenue Distribution\":\n<|{data}|chart|type=histogram|y[1]=SALES|y[2]=REVENUE|title=SALES and Revenue Distribution|>"}
262
  {"text": "# Plot a pie chart of Sales by Date:\n<|{data}|chart|type=pie|values=SALES|labels=Date|>"}
263
  {"text": "# Draw a pie chart of Sales by Date titled \"Sales Pie Chart\":\n<|{data}|chart|type=pie|values=SALES|labels=Date|title=SALES Pie Chart|>"}
264
+ {"text": "# Plot a pie chart of Revenue by Date:\n<|{data}|chart|type=pie|values=REVENUE|labels=Date|>"}