# Suppress output when using Weave

**URL:** <https://discourse.julialang.org/t/suppress-output-when-using-weave/41857>\
**Category:** New to Julia\
**Created:** [June 22, 2020, 1:00pm UTC](https://discourse.julialang.org/t/suppress-output-when-using-weave/41857 "2020-06-22T13:00:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eaubanel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eaubanel/32/13327_2.png) [@eaubanel](https://discourse.julialang.org/u/eaubanel)\
**Post date:** [June 22, 2020, 1:00pm UTC](https://discourse.julialang.org/t/suppress-output-when-using-weave/41857/1 "2020-06-22T13:00:56Z")

</div>

I noticed that I can’t suppress output using a semicolon when creating a document using Weave. For example:

```julia
#' Test Weave's handling of output suppression via ;
c = rand();
#' should show no output.

```

Here’s what the HTML looks like:

 ![Screen Shot 2020-06-22 at 9.59.31 AM](https://global.discourse-cdn.com/julialang/original/3X/4/5/457d00f6c7e5fc1a361afeb2cdd6f8d2677856a2.png)

How can I suppress output?

---

<div class="post-metadata">

**Author:** ![eliassno](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eliassno/32/18917_2.png) [@eliassno](https://discourse.julialang.org/u/eliassno)\
**Post date:** [June 22, 2020, 4:07pm UTC](https://discourse.julialang.org/t/suppress-output-when-using-weave/41857/2 "2020-06-22T16:07:35Z")

</div>

You have to set the chunk option `results="hidden"`. This can be done with a line starting with `#+` above your chunk.

```julia
#' Test Weave's handling of output suppression via
#+ results="hidden"
c = rand()
c += 1
#' should show no output.
c

```
