File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -468,10 +468,9 @@ the PARAMS alist."
468468 (when (member " replace" result-params)
469469 (org-babel-jupyter-cleanup-file-links))
470470 (let* ((org-babel-jupyter-current-src-block-params params)
471- (jupyter-current-client
472- (thread-first (alist-get :session params)
473- (org-babel-jupyter-initiate-session params)
474- (thread-last (buffer-local-value 'jupyter-current-client ))))
471+ (session (alist-get :session params))
472+ (buf (org-babel-jupyter-initiate-session session params))
473+ (jupyter-current-client (buffer-local-value 'jupyter-current-client buf))
475474 (lang (jupyter-kernel-language jupyter-current-client))
476475 (vars (org-babel-variable-assignments:jupyter params lang))
477476 (code (org-babel-expand-body:jupyter body params vars lang)))
You can’t perform that action at this time.
0 commit comments