Greg Wilson commited on
Commit
f006b5f
·
1 Parent(s): 0bd39e5

feat: convert mo.ui.button to mo.ui.run_button

Browse files
queueing/01_basic_ideas.py CHANGED
@@ -10,7 +10,7 @@
10
 
11
  import marimo
12
 
13
- __generated_with = "0.20.4"
14
  app = marimo.App(width="medium")
15
 
16
 
@@ -81,7 +81,7 @@ def _(mo):
81
  step=1,
82
  label="Random seed"
83
  )
84
- run_button = mo.ui.button(label="Run simulation")
85
  mo.vstack([sim_time_slider, arrival_rate_slider, service_rate_slider, window_slider, seed_input, run_button])
86
  return (
87
  arrival_rate_slider,
@@ -196,7 +196,7 @@ def _(
196
  }
197
  for k in range(max(counts) + 1)
198
  ])
199
-
200
  _df = comparison().unpivot(
201
  on=["observed", "theory"], index="k", variable_name="source", value_name="probability"
202
  )
 
10
 
11
  import marimo
12
 
13
+ __generated_with = "0.22.4"
14
  app = marimo.App(width="medium")
15
 
16
 
 
81
  step=1,
82
  label="Random seed"
83
  )
84
+ run_button = mo.ui.run_button(label="Run simulation")
85
  mo.vstack([sim_time_slider, arrival_rate_slider, service_rate_slider, window_slider, seed_input, run_button])
86
  return (
87
  arrival_rate_slider,
 
196
  }
197
  for k in range(max(counts) + 1)
198
  ])
199
+
200
  _df = comparison().unpivot(
201
  on=["observed", "theory"], index="k", variable_name="source", value_name="probability"
202
  )
queueing/02_queue_formation.py CHANGED
@@ -119,7 +119,7 @@ def _(mo):
119
  label="Random seed",
120
  )
121
 
122
- run_button = mo.ui.button(label="Run simulation")
123
 
124
  mo.vstack([
125
  sim_time_slider,
 
119
  label="Random seed",
120
  )
121
 
122
+ run_button = mo.ui.run_button(label="Run simulation")
123
 
124
  mo.vstack([
125
  sim_time_slider,
queueing/04_sojourn_time.py CHANGED
@@ -119,7 +119,7 @@ def _(mo):
119
  label="Random seed",
120
  )
121
 
122
- run_button = mo.ui.button(label="Run simulation")
123
 
124
  mo.vstack([
125
  sim_time_slider,
 
119
  label="Random seed",
120
  )
121
 
122
+ run_button = mo.ui.run_button(label="Run simulation")
123
 
124
  mo.vstack([
125
  sim_time_slider,
queueing/05_mm1_nonlinearity.py CHANGED
@@ -94,7 +94,7 @@ def _(mo):
94
  label="Random seed",
95
  )
96
 
97
- run_button = mo.ui.button(label="Run simulation")
98
 
99
  mo.vstack([
100
  sim_time_slider,
 
94
  label="Random seed",
95
  )
96
 
97
+ run_button = mo.ui.run_button(label="Run simulation")
98
 
99
  mo.vstack([
100
  sim_time_slider,
queueing/06_pooled_vs_separate.py CHANGED
@@ -88,7 +88,7 @@ def _(mo):
88
  label="Random seed",
89
  )
90
 
91
- run_button = mo.ui.button(label="Run simulation")
92
 
93
  mo.vstack([
94
  sim_time_slider,
 
88
  label="Random seed",
89
  )
90
 
91
+ run_button = mo.ui.run_button(label="Run simulation")
92
 
93
  mo.vstack([
94
  sim_time_slider,
queueing/07_late_merge.py CHANGED
@@ -109,7 +109,7 @@ def _(mo):
109
  label="Random seed",
110
  )
111
 
112
- run_button = mo.ui.button(label="Run simulation")
113
 
114
  mo.vstack([
115
  sim_time_slider,
 
109
  label="Random seed",
110
  )
111
 
112
+ run_button = mo.ui.run_button(label="Run simulation")
113
 
114
  mo.vstack([
115
  sim_time_slider,
queueing/08_inspectors_paradox.py CHANGED
@@ -108,7 +108,7 @@ def _(mo):
108
  label="Random seed",
109
  )
110
 
111
- run_button = mo.ui.button(label="Run simulation")
112
 
113
  mo.vstack([
114
  sim_time_slider,
 
108
  label="Random seed",
109
  )
110
 
111
+ run_button = mo.ui.run_button(label="Run simulation")
112
 
113
  mo.vstack([
114
  sim_time_slider,
queueing/09_convoy_effect.py CHANGED
@@ -103,7 +103,7 @@ def _(mo):
103
  label="Random seed",
104
  )
105
 
106
- run_button = mo.ui.button(label="Run simulation")
107
 
108
  mo.vstack([
109
  sim_time_slider,
 
103
  label="Random seed",
104
  )
105
 
106
+ run_button = mo.ui.run_button(label="Run simulation")
107
 
108
  mo.vstack([
109
  sim_time_slider,
queueing/10_priority_starvation.py CHANGED
@@ -112,7 +112,7 @@ def _(mo):
112
  label="Random seed",
113
  )
114
 
115
- run_button = mo.ui.button(label="Run simulation")
116
 
117
  mo.vstack([
118
  sim_time_slider,
 
112
  label="Random seed",
113
  )
114
 
115
+ run_button = mo.ui.run_button(label="Run simulation")
116
 
117
  mo.vstack([
118
  sim_time_slider,
queueing/11_tandem_queue.py CHANGED
@@ -96,7 +96,7 @@ def _(mo):
96
  label="Random seed",
97
  )
98
 
99
- run_button = mo.ui.button(label="Run simulation")
100
 
101
  mo.vstack([
102
  sim_time_slider,
 
96
  label="Random seed",
97
  )
98
 
99
+ run_button = mo.ui.run_button(label="Run simulation")
100
 
101
  mo.vstack([
102
  sim_time_slider,
queueing/12_rush_hour.py CHANGED
@@ -111,7 +111,7 @@ def _(mo):
111
  label="Random seed",
112
  )
113
 
114
- run_button = mo.ui.button(label="Run simulation")
115
 
116
  mo.vstack([
117
  n_commuters_slider,
 
111
  label="Random seed",
112
  )
113
 
114
+ run_button = mo.ui.run_button(label="Run simulation")
115
 
116
  mo.vstack([
117
  n_commuters_slider,
queueing/13_braess_paradox.py CHANGED
@@ -101,7 +101,7 @@ def _(mo):
101
  label="Random seed",
102
  )
103
 
104
- run_button = mo.ui.button(label="Run simulation")
105
 
106
  mo.vstack([
107
  n_rounds_slider,
 
101
  label="Random seed",
102
  )
103
 
104
+ run_button = mo.ui.run_button(label="Run simulation")
105
 
106
  mo.vstack([
107
  n_rounds_slider,