Skip to content

Commit

Permalink
fixing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
karangattu committed Mar 6, 2025
1 parent e007836 commit 1388794
Show file tree
Hide file tree
Showing 43 changed files with 49 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from shiny import reactive
from shiny.express import input, ui, render
from shiny.express import input, render, ui

# Add Font Awesome CSS in the head section first
ui.head_content(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from shiny import reactive
from shiny.express import input, ui, render
from shiny.express import input, render, ui

# Set page options
ui.page_opts(fillable=True)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.run import ShinyAppProc
from shiny.pytest import create_app_fixture

from shiny.run import ShinyAppProc

app = create_app_fixture(["app-core.py", "app-express.py"])

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from shiny import App, render, reactive, ui
from shiny import App, reactive, render, ui

app_ui = ui.page_fillable(
# First card with basic footer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from shiny.express import input, ui, render
from shiny.express import input, render, ui

# Set page options including title
ui.page_opts(title="Card Footer Demo", fillable=True)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.run import ShinyAppProc
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc

app = create_app_fixture(["app-core.py", "app-express.py"])

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from shiny import reactive
from shiny.express import input, ui, render
from shiny.express import input, render, ui

# Add Font Awesome CSS for icons - this needs to be before any UI elements
ui.head_content(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from playwright.sync_api import Page, expect

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from shiny import reactive
from shiny.express import input, ui, render

from shiny.express import input, render, ui

with ui.card():
ui.card_header("Checkbox Demo")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from shiny import reactive
from shiny.express import input, render, ui


# Create sample choices with HTML formatting for demonstration
choices = {
"red": ui.span("Red", style="color: #FF0000;"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from shiny import reactive
from shiny.express import input, ui, render
from shiny.express import input, render, ui

# Add Font Awesome CSS
ui.head_content(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from datetime import date

from shiny import App, reactive, render, ui

app_ui = ui.page_fluid(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from datetime import date

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

with ui.layout_column_wrap():
# Basic date input
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from datetime import date

from shiny import App, reactive, render, ui

# Define the UI
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import date
from shiny import reactive
from shiny.express import input, ui, render

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

# Add some descriptive text
ui.h2("Date Range Input Example")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pandas as pd

from shiny import App, reactive, render, ui
from shiny.types import FileInfo

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pandas as pd

from shiny import reactive
from shiny.express import input, render, ui
from shiny.types import FileInfo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from shiny import reactive
from shiny.express import input, ui, render
from shiny.express import input, render, ui

# Set page title
ui.page_opts(full_width=True)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from shiny import reactive
from shiny.express import input, ui, render
from shiny.express import input, render, ui

# Set page title
ui.page_opts(full_width=True)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from shiny import reactive
from shiny.express import input, ui, render
from shiny.express import input, render, ui

# Sample data for different types of choices
simple_choices = ["A", "B", "C", "D"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from datetime import date, datetime

from shiny import App, reactive, render, ui

app_ui = ui.page_fluid(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from datetime import date, datetime

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

ui.page_opts(title="Slider Parameters Demo", full_width=True)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from datetime import date, datetime

from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
from datetime import date, datetime

app = create_app_fixture(["app-core.py", "app-express.py"])

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from shiny import reactive
from shiny.express import input, ui, render
from shiny.express import input, render, ui

# Page options for basic styling
ui.page_opts(fillable=True)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from shiny import reactive
from shiny.express import input, ui, render
from shiny.express import input, render, ui

# Set page options for a clean layout
ui.page_opts(fillable=True)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from shiny import reactive
from shiny.express import input, ui, render
from shiny.express import input, render, ui

ui.page_opts(fillable=True)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from playwright.sync_api import Page

from shiny.playwright import controller
from shiny.pytest import create_app_fixture
from shiny.run import ShinyAppProc
Expand Down

0 comments on commit 1388794

Please sign in to comment.