mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
jupyter-inspect: Fix commentary
This commit is contained in:
parent
0484fa1191
commit
0ff69491cd
1 changed files with 6 additions and 3 deletions
|
@ -1478,15 +1478,18 @@ DETAIL is the detail level to use for the request and defaults to
|
|||
(setq jupyter-current-client client)
|
||||
(help-setup-xref
|
||||
(list
|
||||
;; We find the client based on session so that we don't
|
||||
;; capture a reference to the client.
|
||||
;; Don't capture a strong reference to the client
|
||||
;; object since we don't know when this reference will
|
||||
;; be cleaned up.
|
||||
(let ((ref (jupyter-weak-ref client)))
|
||||
(lambda ()
|
||||
(let ((jupyter-current-client
|
||||
(jupyter-weak-ref-resolve ref)))
|
||||
(if jupyter-current-client
|
||||
(jupyter-inspect code pos nil detail)
|
||||
(error "Client for session has been removed"))))))
|
||||
;; TODO: Skip over this xref, need to figure
|
||||
;; out if going forward or backward first.
|
||||
(error "Client has been removed"))))))
|
||||
nil)
|
||||
(jupyter-insert msg)))))
|
||||
(message "Nothing found for %s"
|
||||
|
|
Loading…
Add table
Reference in a new issue