Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Carson Sievert <[email protected]>
  • Loading branch information
gadenbuie and cpsievert authored Jan 24, 2024
1 parent 81f0314 commit 4023397
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
5 changes: 3 additions & 2 deletions shiny/api-examples/layout_column_wrap/app-express.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import shiny
from shiny.express import ui

a_card = shiny.ui.card("A simple card")
with ui.hold() as a_card:
with ui.card():
"A simple card"

# Always has 2 columns (on non-mobile)
with ui.layout_column_wrap(width=1 / 2):
Expand Down
3 changes: 1 addition & 2 deletions shiny/api-examples/layout_columns/app-express.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from model_plots import * # model plots and cards

from shiny import render
from shiny.express import input, ui
from shiny.express import input, render, ui

ui.page_opts(title="Model Dashboard")

Expand Down
3 changes: 1 addition & 2 deletions shiny/api-examples/layout_sidebar/app-express.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import matplotlib.pyplot as plt
import numpy as np

from shiny import render
from shiny.express import input, ui
from shiny.express import input, render, ui

with ui.layout_sidebar():
with ui.sidebar():
Expand Down
2 changes: 1 addition & 1 deletion shiny/api-examples/markdown/app-express.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from shiny.express import input, ui
from shiny.express import ui

ui.markdown(
"""
Expand Down
3 changes: 1 addition & 2 deletions shiny/api-examples/page_sidebar/app-express.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import matplotlib.pyplot as plt
import numpy as np

from shiny import render
from shiny.express import input, ui
from shiny.express import input, render, ui

ui.page_opts(page_fn=page_fixed)

Expand Down
3 changes: 1 addition & 2 deletions shiny/api-examples/sidebar/app-express.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from shiny import render
from shiny.express import input, ui
from shiny.express import input, render, ui

ui.page_opts(fillable=True)

Expand Down

0 comments on commit 4023397

Please sign in to comment.