We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ff1804 commit 3762d77Copy full SHA for 3762d77
mne/viz/backends/_notebook.py
@@ -117,8 +117,10 @@ def _trigger_keypress(self, key):
117
# trigger to a vbox which will be present because the _AppWindow is
118
# a vbox, this doesn't trigger specifically for the widget but this
119
# is just for testing
120
+ # note: ipywidgets.HTML does not execute javascript but
121
+ # IPython.display.HTML does
122
key_str = key.title() if len(key) > 1 else key
- display(HTML("""
123
+ display(IPython.display.HTML("""
124
<script>
125
let element = document.getElementsByClassName("widget-vbox")[0];
126
element.dispatchEvent(
0 commit comments