Liking cljdoc? Tell your friends :D
Clojure only.

clojupyter.messages


CLEAR-OUTPUTclj

source

clear-output-contentclj

(clear-output-content wait?)
source

COMM-CLOSEclj

source

comm-close-contentclj

(comm-close-content comm-id data)
source

COMM-INFO-REPLYclj

source

comm-info-reply-contentclj

(comm-info-reply-content comm-id-target-name-map)
source

COMM-INFO-REQUESTclj

source

comm-info-request-contentclj

(comm-info-request-content target-name)
source

COMM-MSGclj

source

comm-msg-contentclj

(comm-msg-content comm-id data)
source

COMM-MSG-CUSTOMclj

source

COMM-MSG-REQUEST-STATEclj

source

COMM-MSG-UPDATEclj

source

COMM-OPENclj

source

comm-open-contentclj

(comm-open-content comm-id data)
(comm-open-content comm-id data opts)
source

COMPLETE-REPLYclj

source

complete-reply-contentclj

(complete-reply-content matches cursor-start cursor-end)
source

COMPLETE-REQUESTclj

source

complete-request-contentclj

(complete-request-content code cursor-pos)
source

DISPLAY-DATAclj

source

display-data-contentclj

(display-data-content data metadata transients-map)
source

ERRORclj

source

error-message-contentclj

(error-message-content execution-count)
source

execute-error-responseclj

(execute-error-response ename evalue traceback)
source

EXECUTE-INPUTclj

source

execute-input-msg-contentclj

(execute-input-msg-content exe-count code)
source

EXECUTE-REPLYclj

source

execute-reply-contentclj

(execute-reply-content status execution-count)
(execute-reply-content status
                       execution-count
                       {:keys [ename evalue traceback] :as opts})
source

EXECUTE-REQUESTclj

source

execute-request-contentclj

(execute-request-content code
                         allow-stdin?
                         silent?
                         stop-on-error?
                         store-history?)
source

EXECUTE-RESULTclj

source

execute-result-contentclj

(execute-result-content data execution-count)
(execute-result-content data execution-count {:keys [metadata]})
source

frames->jupmsgclj

(frames->jupmsg check-signature frames)

Returns a map representing a Jupyter message. frames must be a sequential collection of byte-arrays consisting of a

Returns a map representing a Jupyter message.  `frames` must be a sequential collection of
byte-arrays consisting of a 
sourceraw docstring

HISTORY-REPLYclj

source

history-reply-contentclj

(history-reply-content history-maps)
source

HISTORY-REQUESTclj

source

history-request-contentclj

(history-request-content)
(history-request-content {:keys [output? raw? hist-access-type session start
                                 stop pattern unique?]})
source

INPUT-REPLYclj

source

input-reply-contentclj

(input-reply-content val)
source

INPUT-REQUESTclj

source

input-request-contentclj

(input-request-content prompt)
(input-request-content prompt password?)
source

insert-pathsclj

(insert-paths jupyter-message path-value-map)

Returns the result of inserting into jupyter-message values from vals in path-value-map at the point specified by their keys. path-value-map must be a map from paths to values and all paths must refer to insertion points in either maps or vectors.

Example:

(let [pred #(and (int? %) (odd? %)) replfn (constantly :replaced) value {:a 1, :b [0 1 [1 2 3 {:x [1]}]]} [result paths] (leaf-paths pred replfn value)] [(= value (insert-paths result paths)) ;; <-- The point of leaf-paths and insert-paths result paths]) ;; => [true {:a :replaced, :b [0 :replaced [:replaced 2 :replaced {:x [:replaced]}]]} {[:a] 1, [:b 1] 1, [:b 2 0] 1, [:b 2 2] 3, [:b 2 3 :x 0] 1}]

NOTE: The implementation does NOT work correctly for any Clojure value; it is specialised to handle Jupyter messages which are losslessly serializable to JSON. Paths can only refer to insertion points in vectors and maps.

Returns the result of inserting into `jupyter-message` values from vals in `path-value-map` at the
point specified by their keys.  `path-value-map` must be a map from paths to values and all paths
must refer to insertion points in either maps or vectors.

Example:

  (let [pred #(and (int? %) (odd? %))
        replfn (constantly :replaced)
        value {:a 1, :b [0 1 [1 2 3 {:x [1]}]]}
        [result paths] (leaf-paths pred replfn value)]
    [(= value (insert-paths result paths)) ;; <-- The point of `leaf-paths` and `insert-paths`
     result paths])
  ;; =>
  [true
   {:a :replaced, :b [0 :replaced [:replaced 2 :replaced {:x [:replaced]}]]}
   {[:a] 1, [:b 1] 1, [:b 2 0] 1, [:b 2 2] 3, [:b 2 3 :x 0] 1}]

NOTE: The implementation does NOT work correctly for any Clojure value; it is specialised to
handle Jupyter messages which are losslessly serializable to JSON.  Paths can only refer to
insertion points in vectors and maps.
sourceraw docstring

INSPECT-REPLYclj

source

inspect-reply-contentclj

(inspect-reply-content code result-str)
source

INSPECT-REQUESTclj

source

inspect-request-contentclj

(inspect-request-content code cursor-pos)
(inspect-request-content code cursor-pos {:keys [details?]})
source

INTERRUPT-REPLYclj

source

interrupt-reply-contentclj

(interrupt-reply-content)
source

INTERRUPT-REQUESTclj

source

interrupt-request-contentclj

(interrupt-request-content)
source

IS-COMPLETE-REPLYclj

source

is-complete-reply-contentclj

(is-complete-reply-content status)
source

IS-COMPLETE-REQUESTclj

source

is-complete-request-contentclj

(is-complete-request-content code)
source

jupmsg->framesclj

(jupmsg->frames signer
                {:keys [header parent-header metadata content preframes buffers]
                 :as jupmsg})
source

jupmsg->kernelreqclj

(jupmsg->kernelreq req-port req-message)
source

JupMsgBuffersclj

source

JupMsgPreframesclj

source

KERNEL-INFO-REPLYclj

source

kernel-info-reply-contentclj

(kernel-info-reply-content protocol-version)
(kernel-info-reply-content protocol-version
                           {:keys [banner clj-ver help-links implementation
                                   version-string]})
source

KERNEL-INFO-REQUESTclj

source

kernel-info-request-contentclj

(kernel-info-request-content)
source

kernelrsp->jupmsgclj

(kernelrsp->jupmsg port kernel-rsp)
(kernelrsp->jupmsg port
                   {:keys [rsp-content rsp-msgtype rsp-socket rsp-metadata
                           rsp-buffers req-message]}
                   {:keys [messageid now] :as opts})
source

leaf-pathsclj

(leaf-paths pred f v)

Recursively traverses v replacing elements for which pred returns a truthy value with the result of applying f to the elements. Returns a 2-tuple of the result of the replacements and a map of paths to the replaced elements.

NOTE: The implementation does NOT work correctly for any Clojure value; it is specialised to handle Jupyter messages which are losslessly serializable to JSON. Extraction only occurs from vectors and maps.

Recursively traverses `v` replacing elements for which `pred` returns a truthy value with the
result of applying `f` to the elements.  Returns a 2-tuple of the result of the replacements and a
map of paths to the replaced elements.

NOTE: The implementation does NOT work correctly for any Clojure value; it is specialised to
handle Jupyter messages which are losslessly serializable to JSON.  Extraction only occurs from
vectors and maps.
sourceraw docstring

make-jupmsgclj

(make-jupmsg envelope signature header parent-header metadata content buffers)
source

make-jupmsg-headerclj

(make-jupmsg-header message-id msgtype username session date version)
source

message-allow-stdinclj

(message-allow-stdin message)
source

message-buffersclj

(message-buffers message)
source

message-codeclj

(message-code message)
source

message-comm-dataclj

(message-comm-data message)
source

message-comm-idclj

(message-comm-id message)
source

message-comm-methodclj

(message-comm-method message)
source

message-comm-stateclj

(message-comm-state message)
source

message-contentclj

(message-content message)
source

message-cursor-posclj

(message-cursor-pos message)
source

message-dateclj

(message-date message)
source

message-delimiterclj

(message-delimiter message)
source

message-envelopeclj

(message-envelope message)
source

message-headerclj

(message-header message)
source

message-metadataclj

(message-metadata message)
source

message-msg-idclj

(message-msg-id message)
source

message-msg-typeclj

(message-msg-type message)
source

message-parent-dateclj

(message-parent-date message)
source

message-parent-headerclj

(message-parent-header message)
source

message-parent-msg-idclj

(message-parent-msg-id message)
source

message-parent-msg-typeclj

(message-parent-msg-type message)
source

message-parent-sessionclj

(message-parent-session message)
source

message-parent-usernameclj

(message-parent-username message)
source

message-parent-versionclj

(message-parent-version message)
source

message-restartclj

(message-restart message)
source

message-sessionclj

(message-session message)
source

message-signatureclj

(message-signature message)
source

message-silentclj

(message-silent message)
source

message-stop-on-error?clj

(message-stop-on-error? message)
source

message-store-history?clj

(message-store-history? message)
source

message-user-expressionsclj

(message-user-expressions message)
source

message-usernameclj

(message-username message)
source

message-valueclj

(message-value message)
source

message-versionclj

(message-version message)
source

PROTOCOL-VERSIONclj

source

SHUTDOWN-REPLYclj

source

shutdown-reply-contentclj

(shutdown-reply-content restart?)
source

SHUTDOWN-REQUESTclj

source

shutdown-request-contentclj

(shutdown-request-content)
(shutdown-request-content restart?)
source

STATUSclj

source

status-message-contentclj

(status-message-content execution-state)
source

STREAMclj

source

stream-message-contentclj

(stream-message-content stream-name s)
source

transducer-errorclj

(transducer-error req-port)
source

UPDATE-DISPLAY-DATAclj

source

update-display-dataclj

(update-display-data data metadata tsient)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close