Spaces:
Sleeping
Sleeping
File size: 890 Bytes
9d0b859 d1de67a 4375e49 9c51eb8 d1de67a 9c51eb8 d1de67a 7333d96 d1de67a 1c20e53 9c51eb8 26c521b 9c51eb8 d1de67a 9c51eb8 d1de67a 9d0b859 9c51eb8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | import panel as pn
# Initial instructions
instructions = "# Teste"
# Create a Column container
main_column = pn.Column(pn.pane.Markdown(instructions))
# Function to update the main column
def 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 Template
template = pn.template.FastListTemplate(
title="EasySciRead",
main=[
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
)
# Run the app
template.servable() |