Check for widget dependencies in jupyter-repl-insert-data

This commit is contained in:
Nathaniel Nicandro 2018-10-06 13:57:12 -05:00
parent cadc26f32b
commit 59eba9d3c4

View file

@ -580,7 +580,9 @@ When no valid mimetype is present in DATA, a warning is shown."
(not (memq k jupyter-repl-graphic-mimetypes))))
collect k)))
(cond
((memq :application/vnd.jupyter.widget-view+json mimetypes)
((and (memq :application/vnd.jupyter.widget-view+json mimetypes)
(require 'websocket nil t)
(require 'simple-httpd nil t))
(jupyter-widgets-display-model
jupyter-current-client
(plist-get (plist-get data :application/vnd.jupyter.widget-view+json)