File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
shiny/api-examples/MarkdownStream Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 55from shiny import App , ui
66
77app_ui = ui .page_fluid (
8- ui .output_markdown_stream ("shiny-readme" ),
8+ ui .card (
9+ ui .card_header ("Shiny's README.md" ),
10+ ui .output_markdown_stream ("shiny-readme" ),
11+ height = "400px" ,
12+ class_ = "mt-3" ,
13+ full_screen = True ,
14+ ),
915)
1016
1117
Original file line number Diff line number Diff line change 44
55from shiny .express import session , ui
66
7+ ui .page_opts (full_width = True )
8+
79# Read in the README.md file from the py-shiny repository
810readme = requests .get (
911 "https://raw.githubusercontent.com/posit-dev/py-shiny/refs/heads/main/README.md"
@@ -21,7 +23,7 @@ def chunk_generator():
2123
2224md = ui .MarkdownStream ("shiny-readme" )
2325
24- with ui .card (height = "400px" ):
26+ with ui .card (height = "400px" , class_ = "mt-3" , full_screen = True ):
2527 ui .card_header ("Shiny README.md" )
2628 md .ui ()
2729
You can’t perform that action at this time.
0 commit comments