kbberendsen commited on
Commit
a582e94
1 Parent(s): 1fe0802

module still not working

Browse files
__pycache__/app.cpython-311.pyc CHANGED
Binary files a/__pycache__/app.cpython-311.pyc and b/__pycache__/app.cpython-311.pyc differ
 
app.py CHANGED
@@ -84,9 +84,9 @@ app_ui = ui.page_fluid(
84
  ui.row(
85
  ui.column(
86
  6,
87
- plot.plot1_ui("gear_1"),
88
- ui.output_text("fastest_driver_1"),
89
- ui.output_text("laptime_1")
90
  ),
91
  ui.column(
92
  6,
@@ -194,7 +194,7 @@ def server(input, output, session):
194
 
195
  return f"The lap time is: {formatted_time}"
196
 
197
- plot.plot1_server("gear_1")
198
 
199
  @output
200
  @render.plot
 
84
  ui.row(
85
  ui.column(
86
  6,
87
+ plot.plot1_ui("gear_1")
88
+ #ui.output_text("fastest_driver_1"),
89
+ #ui.output_text("laptime_1")
90
  ),
91
  ui.column(
92
  6,
 
194
 
195
  return f"The lap time is: {formatted_time}"
196
 
197
+ plot.plot1_server("plot1")
198
 
199
  @output
200
  @render.plot
modules/__pycache__/plot.cpython-311.pyc CHANGED
Binary files a/modules/__pycache__/plot.cpython-311.pyc and b/modules/__pycache__/plot.cpython-311.pyc differ
 
modules/plot.py CHANGED
@@ -9,9 +9,9 @@ import shinyswatch
9
 
10
  # UI
11
  @module.ui
12
- def plot1_ui(label: str = 'plot1_ui'):
13
  return ui.div(
14
- ui.output_plot('gear_1')
15
  )
16
 
17
  # Server
 
9
 
10
  # UI
11
  @module.ui
12
+ def plot1_ui(label: str = 'plot1'):
13
  return ui.div(
14
+ ui.output_plot('plot1')
15
  )
16
 
17
  # Server