Spaces:
Sleeping
Sleeping
| 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() |