102 Output
#| standalone: true
#| components: [viewer]
#| layout: horizontal
#| viewerHeight: 800
from shiny.express import render
@render.code
def text():
txt="Some text to display in code format"
return txt
## file: requirements.txt
shiny==1.0.0
shinywidgets
#| standalone: true
#| components: [editor, viewer]
#| layout: horizontal
#| viewerHeight: 800
from shiny.express import render
@render.code
def text():
txt="Some text to display in code format"
return txt
## file: requirements.txt
shiny==1.0.0
shinywidgets
The source code for this exercise is at https://github.com/posit-conf-2024/intro-to-shiny-for-python/tree/main/docs/apps/102-output.