jupyter-rep-sync-execution-state: Only update the last cell count

This commit is contained in:
Nathaniel Nicandro 2018-12-19 21:05:12 -06:00
parent b31c23861e
commit 169b5647e5
No known key found for this signature in database
GPG key ID: C34814B309DD06B8

View file

@ -1574,8 +1574,10 @@ it."
(unless (equal (jupyter-execution-state client) "busy")
;; Set the cell count and update the prompt
(jupyter-with-repl-buffer client
(jupyter-repl-update-cell-count
(oref client execution-count))))))
(save-excursion
(goto-char (point-max))
(jupyter-repl-update-cell-count
(oref client execution-count)))))))
;; Waiting longer here to account for initial startup of the Jupyter
;; kernel. Sometimes the idle message won't be received if another long
;; running execute request is sent right after.