mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
Add jupyter-repl-cell-reset-prompt
This commit is contained in:
parent
d86eea253b
commit
0fc402cd6b
1 changed files with 5 additions and 0 deletions
|
@ -824,6 +824,11 @@ interpreted as `in'."
|
|||
(when ov
|
||||
(cadr (get-text-property 0 'display (overlay-get ov 'after-string))))))
|
||||
|
||||
(defun jupyter-repl-cell-reset-prompt ()
|
||||
"Reset the current prompt back to its default."
|
||||
(jupyter-repl-cell-update-prompt
|
||||
(format "In [%d] " (jupyter-repl-cell-count))))
|
||||
|
||||
(defun jupyter-repl-cell-update-prompt (str &optional face)
|
||||
"Update the current cell's input prompt.
|
||||
STR is the replacement prompt string. If FACE is non-nil, it
|
||||
|
|
Loading…
Add table
Reference in a new issue