Skip to content

Commit 3762d77

Browse files
committed
fix note for future fake keypress
1 parent 9ff1804 commit 3762d77

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mne/viz/backends/_notebook.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,10 @@ def _trigger_keypress(self, key):
117117
# trigger to a vbox which will be present because the _AppWindow is
118118
# a vbox, this doesn't trigger specifically for the widget but this
119119
# is just for testing
120+
# note: ipywidgets.HTML does not execute javascript but
121+
# IPython.display.HTML does
120122
key_str = key.title() if len(key) > 1 else key
121-
display(HTML("""
123+
display(IPython.display.HTML("""
122124
<script>
123125
let element = document.getElementsByClassName("widget-vbox")[0];
124126
element.dispatchEvent(

0 commit comments

Comments
 (0)