We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37613ab commit 6a0c7afCopy full SHA for 6a0c7af
jupyter-rest-api.el
@@ -752,6 +752,18 @@ the server."
752
753
;;;; Endpoints
754
755
+(cl-defmethod jupyter-api-server-version ((client jupyter-rest-client))
756
+ "Return the version of the server CLIENT is connected to."
757
+ (let (jupyter-api-request-data
758
+ jupyter-api-request-headers)
759
+ ;; This endpoint does not require authentication so it is OK to
760
+ ;; use `jupyter-api-http-request'.
761
+ ;;
762
+ ;; https://jupyter-server.readthedocs.io/en/latest/developers/rest-api.html#get--api-
763
+ (plist-get
764
+ (jupyter-api-http-request (oref client url) "api" "GET")
765
+ :version)))
766
+
767
(cl-defgeneric jupyter-api/kernels (client method &rest plist)
768
(declare (indent 2)))
769
0 commit comments