Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supress cell output? #69

Open
Symbolics opened this issue Mar 12, 2021 · 3 comments
Open

Supress cell output? #69

Symbolics opened this issue Mar 12, 2021 · 3 comments

Comments

@Symbolics
Copy link

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.

@yitzchak
Copy link
Owner

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

@Symbolics
Copy link
Author

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.

@yitzchak
Copy link
Owner

yitzchak commented Apr 2, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants