Skip to content

Commit f069259

Browse files
authored
Merge pull request #355 from martinRenou/fix_matplotlib_master
Fix CI for matplotlib's master branch
2 parents 9d50a96 + dafaf1d commit f069259

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ipympl/backend_nbagg.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ def _handle_message(self, object, content, buffers):
181181
def send_json(self, content):
182182
# Change in the widget state?
183183
if content['type'] == 'cursor':
184-
self._cursor = cursors_str[content['cursor']]
184+
cursor = content['cursor']
185+
self._cursor = (
186+
cursors_str[cursor] if cursor in cursors_str else cursor
187+
)
185188

186189
elif content['type'] == 'message':
187190
self._message = content['message']

0 commit comments

Comments
 (0)