Created
April 27, 2019 14:27
-
-
Save fleimgruber/31690e59e528cb29433cef39795c0730 to your computer and use it in GitHub Desktop.
jupyter-channel-ioloop-comm -> jupyter-channel-comm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Debugger entered--Lisp error: (void-function jupyter-channel-comm) | |
(jupyter-channel-comm) | |
(eieio-oset client 'kcomm (jupyter-channel-comm)) | |
(prog1 client (eieio-oset client 'manager manager) (eieio-oset client 'kcomm (jupyter-channel-comm)) (jupyter-initialize-connection client (copy-sequence (eieio-oref manager 'session)))) | |
(let ((client (apply (function make-instance) class slots))) (prog1 client (eieio-oset client 'manager manager) (eieio-oset client 'kcomm (jupyter-channel-comm)) (jupyter-initialize-connection client (copy-sequence (eieio-oref manager 'session))))) | |
(progn (if (child-of-class-p class 'jupyter-kernel-client) nil (signal 'wrong-type-argument (list '(subclass jupyter-kernel-client) class))) (let ((client (apply (function make-instance) class slots))) (prog1 client (eieio-oset client 'manager manager) (eieio-oset client 'kcomm (jupyter-channel-comm)) (jupyter-initialize-connection client (copy-sequence (eieio-oref manager 'session)))))) | |
(progn (progn (if (child-of-class-p class 'jupyter-kernel-client) nil (signal 'wrong-type-argument (list '(subclass jupyter-kernel-client) class))) (let ((client (apply (function make-instance) class slots))) (prog1 client (eieio-oset client 'manager manager) (eieio-oset client 'kcomm (jupyter-channel-comm)) (jupyter-initialize-connection client (copy-sequence (eieio-oref manager 'session))))))) | |
(closure (t) (manager class &rest slots) "Make a new client from CLASS connected to MANAGER's kernel.\nCLASS should be a subclass of `jupyter-kernel-client', a new\ninstance of CLASS is initialized with SLOTS and configured to\nconnect to MANAGER's kernel.\n\n(fn MANAGER CLASS &rest SLOTS)" (progn (progn (if (child-of-class-p class 'jupyter-kernel-client) nil (signal 'wrong-type-argument (list '(subclass jupyter-kernel-client) class))) (let ((client (apply (function make-instance) class slots))) (prog1 client (eieio-oset client 'manager manager) (eieio-oset client 'kcomm (jupyter-channel-comm)) (jupyter-initialize-connection client (copy-sequence (eieio-oref manager 'session))))))))(#<jupyter-kernel-manager jupyter-kernel-manager> jupyter-repl-client) | |
apply((closure (t) (manager class &rest slots) "Make a new client from CLASS connected to MANAGER's kernel.\nCLASS should be a subclass of `jupyter-kernel-client', a new\ninstance of CLASS is initialized with SLOTS and configured to\nconnect to MANAGER's kernel.\n\n(fn MANAGER CLASS &rest SLOTS)" (progn (progn (if (child-of-class-p class 'jupyter-kernel-client) nil (signal 'wrong-type-argument (list '(subclass jupyter-kernel-client) class))) (let ((client (apply (function make-instance) class slots))) (prog1 client (eieio-oset client 'manager manager) (eieio-oset client 'kcomm (jupyter-channel-comm)) (jupyter-initialize-connection client (copy-sequence (eieio-oref manager 'session)))))))) #<jupyter-kernel-manager jupyter-kernel-manager> jupyter-repl-client) | |
jupyter-make-client(#<jupyter-kernel-manager jupyter-kernel-manager> jupyter-repl-client) | |
(let* ((key (jupyter-new-uuid)) (conn-info (jupyter-create-connection-info :kernel-name kernel-name :key key)) (session (jupyter-session :key key :conn-info conn-info)) (manager (jupyter-kernel-manager :name kernel-name :spec (cdr (cdr match)) :session session)) (client (jupyter-make-client manager client-class)) started) (let* ((jupyter-include-other-output t) (cb (function (lambda (_ msg) (setq started (jupyter-message-status-starting-p msg)))))) (jupyter-add-hook client 'jupyter-iopub-message-hook cb) (jupyter-start-channels client) (jupyter-start-kernel manager) (jupyter-start-channels manager) (let* ((res nil) (prog-msg "Kernel starting up...") (timeout jupyter-long-timeout) (wait-time (/ timeout 10.0)) (prog (and (stringp prog-msg) (make-progress-reporter prog-msg)))) (let ((-with-timeout-value- (catch 'timeout (let* ((-with-timeout-timer- (run-with-timer timeout nil (function (lambda nil (throw 'timeout 'timeout))))) (with-timeout-timers (cons -with-timeout-timer- with-timeout-timers))) (unwind-protect (progn (while (not (setq res (progn started))) (accept-process-output nil wait-time) (if prog (progn (progress-reporter-update prog))))) (cancel-timer -with-timeout-timer-)))))) (if (eq -with-timeout-value- 'timeout) (progn (message "Kernel did not send startup message")) -with-timeout-value-)) (prog1 res (if prog (progn (progress-reporter-done prog))))) (jupyter-hb-unpause client) (jupyter-remove-hook client 'jupyter-iopub-message-hook cb) (jupyter--error-if-no-kernel-info client) (list manager client))) | |
(let ((match (car (jupyter-find-kernelspecs kernel-name)))) (if match nil (error "No kernel found that starts with name (%s)" kernel-name)) (setq kernel-name (car match)) (let* ((key (jupyter-new-uuid)) (conn-info (jupyter-create-connection-info :kernel-name kernel-name :key key)) (session (jupyter-session :key key :conn-info conn-info)) (manager (jupyter-kernel-manager :name kernel-name :spec (cdr (cdr match)) :session session)) (client (jupyter-make-client manager client-class)) started) (let* ((jupyter-include-other-output t) (cb (function (lambda (_ msg) (setq started (jupyter-message-status-starting-p msg)))))) (jupyter-add-hook client 'jupyter-iopub-message-hook cb) (jupyter-start-channels client) (jupyter-start-kernel manager) (jupyter-start-channels manager) (let* ((res nil) (prog-msg "Kernel starting up...") (timeout jupyter-long-timeout) (wait-time (/ timeout 10.0)) (prog (and (stringp prog-msg) (make-progress-reporter prog-msg)))) (let ((-with-timeout-value- (catch 'timeout (let* ((-with-timeout-timer- (run-with-timer timeout nil (function (lambda nil (throw 'timeout 'timeout))))) (with-timeout-timers (cons -with-timeout-timer- with-timeout-timers))) (unwind-protect (progn (while (not (setq res (progn started))) (accept-process-output nil wait-time) (if prog (progn (progress-reporter-update prog))))) (cancel-timer -with-timeout-timer-)))))) (if (eq -with-timeout-value- 'timeout) (progn (message "Kernel did not send startup message")) -with-timeout-value-)) (prog1 res (if prog (progn (progress-reporter-done prog))))) (jupyter-hb-unpause client) (jupyter-remove-hook client 'jupyter-iopub-message-hook cb) (jupyter--error-if-no-kernel-info client) (list manager client)))) | |
jupyter-start-new-kernel("python3" jupyter-repl-client) | |
(let* ((--cl-rest-- (jupyter-start-new-kernel kernel-name client-class)) (_manager (if (= (length --cl-rest--) 2) (car-safe (prog1 --cl-rest-- (setq --cl-rest-- (cdr --cl-rest--)))) (signal 'wrong-number-of-arguments (list nil (length --cl-rest--))))) (client (car --cl-rest--))) (progn (jupyter-repl--new-repl client repl-name) (if (and associate-buffer (eq major-mode (jupyter-kernel-language-mode client))) (progn (jupyter-repl-associate-buffer client))) (if display (progn (pop-to-buffer (eieio-oref client 'buffer)))) client)) | |
jupyter-run-repl("python") | |
(let* ((client (jupyter-run-repl "python")) (jupyter-inhibit-handlers t) (req (jupyter-send-execute-request client :code "1 + 1"))) (unwind-protect (progn (jupyter-add-callback req :execute-result (function (lambda (msg14) (let* ((msg msg14) (res (jupyter-message-data msg ':text/plain))) (message "RESULT: %s" res))))) (jupyter-wait-until-idle req) nil) (jupyter-stop-channels client) (jupyter-shutdown-kernel (eieio-oref client 'manager)))) | |
eval((let* ((client (jupyter-run-repl "python")) (jupyter-inhibit-handlers t) (req (jupyter-send-execute-request client :code "1 + 1"))) (unwind-protect (progn (jupyter-add-callback req :execute-result (function (lambda (msg14) (let* ((msg msg14) (res (jupyter-message-data msg ':text/plain))) (message "RESULT: %s" res))))) (jupyter-wait-until-idle req) nil) (jupyter-stop-channels client) (jupyter-shutdown-kernel (eieio-oref client 'manager)))) nil) | |
elisp--eval-last-sexp(nil) | |
#f(compiled-function (eval-last-sexp-arg-internal) "Evaluate sexp before point; print value in the echo area.\nInteractively, with a non `-' prefix argument, print output into\ncurrent buffer.\n\nNormally, this function truncates long output according to the\nvalue of the variables `eval-expression-print-length' and\n`eval-expression-print-level'. With a prefix argument of zero,\nhowever, there is no such truncation. Such a prefix argument\nalso causes integers to be printed in several additional formats\n(octal, hexadecimal, and character when the prefix argument is\n-1 or the integer is `eval-expression-print-maximum-character' or\nless).\n\nIf `eval-expression-debug-on-error' is non-nil, which is the default,\nthis command arranges for all errors to enter the debugger." (interactive "P") #<bytecode 0x1000d575b>)(nil) | |
#f(compiled-function (&rest _it) #<bytecode 0x2cb2775>)() | |
eval-sexp-fu-flash-doit-simple(#f(compiled-function (&rest _it) #<bytecode 0x2cb2775>) #f(compiled-function (&rest args2) #<bytecode 0x2a24035>) #f(compiled-function (&rest args2) #<bytecode 0x2a24055>)) | |
eval-sexp-fu-flash-doit(#f(compiled-function (&rest _it) #<bytecode 0x2cb2775>) #f(compiled-function (&rest args2) #<bytecode 0x2a24035>) #f(compiled-function (&rest args2) #<bytecode 0x2a24055>)) | |
esf-flash-doit(#f(compiled-function (&rest _it) #<bytecode 0x2cb2775>) #f(compiled-function (&rest args2) #<bytecode 0x2a24035>) #f(compiled-function (&rest args2) #<bytecode 0x2a24055>) #f(compiled-function (&rest args2) #<bytecode 0x2a24075>)) | |
ad-Advice-eval-last-sexp(#f(compiled-function (eval-last-sexp-arg-internal) "Evaluate sexp before point; print value in the echo area.\nInteractively, with a non `-' prefix argument, print output into\ncurrent buffer.\n\nNormally, this function truncates long output according to the\nvalue of the variables `eval-expression-print-length' and\n`eval-expression-print-level'. With a prefix argument of zero,\nhowever, there is no such truncation. Such a prefix argument\nalso causes integers to be printed in several additional formats\n(octal, hexadecimal, and character when the prefix argument is\n-1 or the integer is `eval-expression-print-maximum-character' or\nless).\n\nIf `eval-expression-debug-on-error' is non-nil, which is the default,\nthis command arranges for all errors to enter the debugger." (interactive "P") #<bytecode 0x1000d575b>) nil) | |
apply(ad-Advice-eval-last-sexp #f(compiled-function (eval-last-sexp-arg-internal) "Evaluate sexp before point; print value in the echo area.\nInteractively, with a non `-' prefix argument, print output into\ncurrent buffer.\n\nNormally, this function truncates long output according to the\nvalue of the variables `eval-expression-print-length' and\n`eval-expression-print-level'. With a prefix argument of zero,\nhowever, there is no such truncation. Such a prefix argument\nalso causes integers to be printed in several additional formats\n(octal, hexadecimal, and character when the prefix argument is\n-1 or the integer is `eval-expression-print-maximum-character' or\nless).\n\nIf `eval-expression-debug-on-error' is non-nil, which is the default,\nthis command arranges for all errors to enter the debugger." (interactive "P") #<bytecode 0x1000d575b>) nil) | |
eval-last-sexp(nil) | |
funcall-interactively(eval-last-sexp nil) | |
call-interactively(eval-last-sexp nil nil) | |
command-execute(eval-last-sexp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment