common-lisp-jupyter icon indicating copy to clipboard operation
common-lisp-jupyter copied to clipboard

Supress cell output?

Open Symbolics opened this issue 4 years ago • 3 comments

Is it possible to suppress the output of a cell? Python based notebooks have a few tricks for this, but I could not find a way to do this in CLJ.

Symbolics avatar Mar 12 '21 06:03 Symbolics

(values) will return nothing. There is also a :no-output symbol. There are some examples in about on using it.

yitzchak avatar Mar 12 '21 12:03 yitzchak

I suppose what I meant was for things like quickload loads, or ASDF operations, where the output isn't relevant, not functions in my own code.

Symbolics avatar Mar 13 '21 14:03 Symbolics

I would think that the method in the notebook link would work.

(defun no-output-reader (stream char)
   (declare (ignore char))
   (list (quote progn) (read stream t nil t) :no-output))

(set-macro-character #\~ #'no-output-reader)

yitzchak avatar Apr 02 '21 09:04 yitzchak