Skip to content

Commit f5cbba5

Browse files
committed
Fix issue with keyword buttons display ids with ipywidgets > 8
1 parent 83e572b commit f5cbba5

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/robotkernel/executors.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,17 +166,27 @@ def inject_ipywidgets(
166166
rpa: bool,
167167
):
168168
suite_ = build_suite(code, {})
169+
counter = 0
169170
for keyword in suite_.resource.keywords:
170171
name = keyword.name
171172
arguments = []
173+
counter += 1
172174
for arg in keyword.args:
173175
if "=" in arg:
174176
arg, default = arg.split("=", 1)
175177
else:
176178
default = None
177179
arguments.append((arg, normalize_argument(arg), default))
178180
inject_ipywidget(
179-
kernel, code, history, listeners, silent, display_id, rpa, name, arguments
181+
kernel,
182+
code,
183+
history,
184+
listeners,
185+
silent,
186+
f"{display_id}.{counter:02}",
187+
rpa,
188+
name,
189+
arguments,
180190
)
181191

182192

0 commit comments

Comments
 (0)