Skip to content

Commit aec436a

Browse files
committed
Add jupyter-org-toggle-request-queuing
* jupyter-org-client.el (jupyter-org-toggle-request-queuing): New function. * README.org: Mention it.
1 parent 010f5c5 commit aec436a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.org

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,9 @@ when one request finishes that the next is sent. In addition, if any
593593
request fails all the queued requests that are meant to come after it
594594
are aborted and do not get sent to the kernel.
595595

596+
To turn client side queuing on or off you
597+
can =M-x jupyter-org-toggle-request-queuing=.
598+
596599
** Kernel/notebook server
597600
*** Managing live kernels
598601

jupyter-org-client.el

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,13 @@ to."
431431

432432
;;; Queueing requests
433433

434+
;;;###autoload
435+
(defun jupyter-org-toggle-request-queuing ()
436+
"Toggle on or off client side queuing."
437+
(interactive)
438+
(setq jupyter-org-queue-requests
439+
(not jupyter-org-queue-requests)))
440+
434441
(defun jupyter-org-abort (req)
435442
"Abort REQ.
436443
Set the request as being idle. Remove any indication that REQ is

0 commit comments

Comments
 (0)