mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 23:41:38 -05:00
jupyter-repl-eval-string: Fix out of place else condition in if
This commit is contained in:
parent
19c8d9c58c
commit
6d4efb9823
1 changed files with 11 additions and 11 deletions
|
@ -2189,18 +2189,18 @@ to the above explanation."
|
||||||
(jupyter-message-get msg :data)
|
(jupyter-message-get msg :data)
|
||||||
(jupyter-message-get msg :metadata))
|
(jupyter-message-get msg :metadata))
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(display-buffer (current-buffer))))
|
|
||||||
(setq res (ansi-color-apply res))
|
|
||||||
(if (cl-loop
|
|
||||||
with nlines = 0
|
|
||||||
for c across res when (eq c ?\n) do (cl-incf nlines)
|
|
||||||
thereis (> nlines 10))
|
|
||||||
(jupyter-repl-with-doc-buffer "result"
|
|
||||||
(insert res)
|
|
||||||
(goto-char (point-min))
|
|
||||||
(display-buffer (current-buffer)))
|
(display-buffer (current-buffer)))
|
||||||
(if (equal res "") (message "jupyter: eval done")
|
(setq res (ansi-color-apply res))
|
||||||
(message "%s" res))))))
|
(if (cl-loop
|
||||||
|
with nlines = 0
|
||||||
|
for c across res when (eq c ?\n) do (cl-incf nlines)
|
||||||
|
thereis (> nlines 10))
|
||||||
|
(jupyter-repl-with-doc-buffer "result"
|
||||||
|
(insert res)
|
||||||
|
(goto-char (point-min))
|
||||||
|
(display-buffer (current-buffer)))
|
||||||
|
(if (equal res "") (message "jupyter: eval done")
|
||||||
|
(message "%s" res)))))))
|
||||||
:error
|
:error
|
||||||
(lambda (msg)
|
(lambda (msg)
|
||||||
(jupyter-with-message-content msg (traceback)
|
(jupyter-with-message-content msg (traceback)
|
||||||
|
|
Loading…
Add table
Reference in a new issue