Spaces:
Sleeping
Sleeping
Update app3.py
Browse files1234556678891011121314151617181920212223241525262728192021293031323334import panel as pn
# Initial instructionsinstructions = "# Teste"
text = pn.Column(pn.pane.Markdown(instructions))text.append(pn.Column(pn.pane.Markdown(instructions)))# Create a Column containermain_column = pn.Column(pn.pane.Markdown(instructions))
print(str(text),flush = True)# Function to update the main columndef update_main(): # New instructions to be displayed new_instructions = "## Updated Teste"
# Create a new Markdown pane with the updated instructions updated_pane = pn.pane.Markdown(new_instructions)
# Clear the main_column and replace it with the updated pane main_column.clear() main_column.append(updated_pane)
# Layout using Templatetemplate = pn.template.FastListTemplate( title="EasySciRead", main=[ text, # Filter list row before the text main_column, # Use the Column container in the main layout ], accent_base_color="#88d8b0", header_background="#FFFFFF", header_color = "#000000", text_align = 'center', sidebar_width = 150 header_color="#000000", text_align='center', sidebar_width=150)
# Run the appapp3.py+17-7