mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
jupyter-org-result: More informative error
* jupyter-org-client.el (jupyter-org-result): Do it.
This commit is contained in:
parent
c5c2c84a0d
commit
df6651a1f1
1 changed files with 8 additions and 7 deletions
|
@ -979,13 +979,14 @@ passed to Jupyter org-mode source blocks."
|
|||
(push (cons :file (jupyter-org-request-file req)) params))
|
||||
(cl-destructuring-bind (data metadata)
|
||||
(jupyter-normalize-data plist metadata)
|
||||
(or (jupyter-loop-over-mime
|
||||
(cond
|
||||
((jupyter-loop-over-mime
|
||||
(or display-mime-types jupyter-org-mime-types)
|
||||
mime data metadata
|
||||
(jupyter-org-result mime params data metadata))
|
||||
(prog1 nil
|
||||
(warn "No valid mimetype found %s"
|
||||
(cl-loop for (k _v) on data by #'cddr collect k)))))))
|
||||
(jupyter-org-result mime params data metadata)))
|
||||
(t
|
||||
(warn "Requested mimetype(s) not returned by kernel: %s"
|
||||
(or display-mime-types jupyter-org-mime-types)))))))
|
||||
|
||||
(cl-defmethod jupyter-org-result ((_mime (eql :application/vnd.jupyter.widget-view+json))
|
||||
_params _data &optional _metadata)
|
||||
|
|
Loading…
Add table
Reference in a new issue