mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 01:21:38 -05:00
commit
13fe38862b
4 changed files with 17 additions and 18 deletions
|
@ -7,8 +7,8 @@
|
||||||
.. COMMENTARY (see Makefile)
|
.. COMMENTARY (see Makefile)
|
||||||
|
|
||||||
.. |build-status|
|
.. |build-status|
|
||||||
image:: https://secure.travis-ci.org/dickmao/emacs-ipython-notebook.png?branch=master
|
image:: https://secure.travis-ci.com/dickmao/emacs-ipython-notebook.png?branch=master
|
||||||
:target: http://travis-ci.org/dickmao/emacs-ipython-notebook
|
:target: http://travis-ci.com/dickmao/emacs-ipython-notebook
|
||||||
:alt: Build Status
|
:alt: Build Status
|
||||||
.. |melpa-dev|
|
.. |melpa-dev|
|
||||||
image:: http://melpa.milkbox.net/packages/ein-badge.svg
|
image:: http://melpa.milkbox.net/packages/ein-badge.svg
|
||||||
|
|
|
@ -14,8 +14,8 @@ EIN was originally written by `[tkf]`_. A jupyter Babel_ backend was first
|
||||||
introduced by `[gregsexton]`_.
|
introduced by `[gregsexton]`_.
|
||||||
|
|
||||||
.. |build-status|
|
.. |build-status|
|
||||||
image:: https://secure.travis-ci.org/dickmao/emacs-ipython-notebook.png?branch=master
|
image:: https://secure.travis-ci.com/dickmao/emacs-ipython-notebook.png?branch=master
|
||||||
:target: http://travis-ci.org/dickmao/emacs-ipython-notebook
|
:target: http://travis-ci.com/dickmao/emacs-ipython-notebook
|
||||||
:alt: Build Status
|
:alt: Build Status
|
||||||
.. |melpa-dev|
|
.. |melpa-dev|
|
||||||
image:: http://melpa.milkbox.net/packages/ein-badge.svg
|
image:: http://melpa.milkbox.net/packages/ein-badge.svg
|
||||||
|
@ -69,7 +69,6 @@ Notebook server ``M-x ein:log-pop-to-request-buffer``.
|
||||||
Kernel messaging (must be run from notebook buffer) ``M-x ein:dev-pop-to-debug-channels``.
|
Kernel messaging (must be run from notebook buffer) ``M-x ein:dev-pop-to-debug-channels``.
|
||||||
|
|
||||||
.. _spacemacs layer: https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Blang/ipython-notebook
|
.. _spacemacs layer: https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Blang/ipython-notebook
|
||||||
.. _auto-complete: https://github.com/auto-complete/auto-complete
|
|
||||||
.. _company-mode: https://github.com/company-mode/company-mode
|
.. _company-mode: https://github.com/company-mode/company-mode
|
||||||
.. _jupyterhub: https://github.com/jupyterhub/jupyterhub
|
.. _jupyterhub: https://github.com/jupyterhub/jupyterhub
|
||||||
|
|
||||||
|
|
|
@ -838,8 +838,7 @@ If END is non-`nil', return the location of next element."
|
||||||
;; (ein:flush-clear-timeout)
|
;; (ein:flush-clear-timeout)
|
||||||
(setf (slot-value cell 'outputs)
|
(setf (slot-value cell 'outputs)
|
||||||
(append (slot-value cell 'outputs) (list json)))
|
(append (slot-value cell 'outputs) (list json)))
|
||||||
|
(ein:with-live-buffer (ein:cell-buffer cell)
|
||||||
(with-current-buffer (ewoc-buffer (slot-value cell 'ewoc))
|
|
||||||
(let* ((inhibit-read-only t)
|
(let* ((inhibit-read-only t)
|
||||||
(buffer-undo-list t) ; disable undo recording
|
(buffer-undo-list t) ; disable undo recording
|
||||||
(ewoc (slot-value cell 'ewoc))
|
(ewoc (slot-value cell 'ewoc))
|
||||||
|
|
|
@ -1056,13 +1056,14 @@ Do not clear input prompts when the prefix argument is given."
|
||||||
:cell-p #'ein:codecell-p)))
|
:cell-p #'ein:codecell-p)))
|
||||||
(ein:kernel-when-ready (slot-value ws 'kernel)
|
(ein:kernel-when-ready (slot-value ws 'kernel)
|
||||||
(apply-partially
|
(apply-partially
|
||||||
(lambda (ws* cell* buffer kernel)
|
(lambda (ws* cell* kernel)
|
||||||
(with-current-buffer buffer
|
(ein:with-live-buffer (ein:cell-buffer cell*)
|
||||||
(let ((buffer-undo-list t))
|
(let ((buffer-undo-list t))
|
||||||
(ein:cell-execute cell*)
|
(ein:cell-execute cell*)
|
||||||
(oset ws* :dirty t))
|
(oset ws* :dirty t)))
|
||||||
(ein:worksheet--unshift-undo-list cell*)))
|
;; unshift-undo calls ein:with-live-buffer
|
||||||
ws cell (current-buffer)))
|
(ein:worksheet--unshift-undo-list cell*))
|
||||||
|
ws cell))
|
||||||
cell)
|
cell)
|
||||||
|
|
||||||
(defun ein:worksheet-execute-cell-and-goto-next (ws cell &optional insert)
|
(defun ein:worksheet-execute-cell-and-goto-next (ws cell &optional insert)
|
||||||
|
|
Loading…
Add table
Reference in a new issue