# Way to hide code in Weaved documents?

**URL:** <https://discourse.julialang.org/t/way-to-hide-code-in-weaved-documents/35380>\
**Category:** General Usage\
**Created:** [March 1, 2020, 11:54pm UTC](https://discourse.julialang.org/t/way-to-hide-code-in-weaved-documents/35380 "2020-03-01T23:54:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [March 1, 2020, 11:54pm UTC](https://discourse.julialang.org/t/way-to-hide-code-in-weaved-documents/35380/1 "2020-03-01T23:54:53Z")

</div>

In R, if I have a code that is only for technical stuff, like:

```julia
library("zoo", lib.loc="C:/software/Rpackages")

```

I can represent the same code as

```julia
` library("zoo", lib.loc="C:/software/Rpackages") `

```

and it won’t show up in the final report, with say knitr or markdown.

Is there a similar comand for Julia, to make my reports look nice?

---

<div class="post-metadata">

**Author:** ![affans](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/affans/32/11911_2.png) [@affans](https://discourse.julialang.org/u/affans)\
**Post date:** [March 2, 2020, 12:18am UTC](https://discourse.julialang.org/t/way-to-hide-code-in-weaved-documents/35380/2 "2020-03-02T00:18:40Z")

</div>

The output of a expression in Julia can be suppressed by ending the line with `;`. It might not be what you want, but it will help clean up a document. See [https://github.com/JunoLab/Weave.jl](https://github.com/JunoLab/Weave.jl) for report generation and documentation therein.

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [March 2, 2020, 12:46am UTC](https://discourse.julialang.org/t/way-to-hide-code-in-weaved-documents/35380/3 "2020-03-02T00:46:46Z")

</div>

Yeah, the output is the only thing I don’t want to hide from my final document.

---

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [March 2, 2020, 1:17am UTC](https://discourse.julialang.org/t/way-to-hide-code-in-weaved-documents/35380/4 "2020-03-02T01:17:57Z")

</div>

It would be helpful if the title of the post specified that you want to hide code in a report generated by weave. I edited the title to reflect this.

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [March 2, 2020, 2:30am UTC](https://discourse.julialang.org/t/way-to-hide-code-in-weaved-documents/35380/5 "2020-03-02T02:30:03Z")

</div>

If you search “hide” in the Weave documentation, and navigate to [code chunks](http://weavejl.mpastell.com/stable/usage/#Code-chunks-1), you see:

> Markdown code chunks are defined using fenced code blocks with options following on the same line. e.g. to hide code from output you can use:  
> ```julia; echo=false`

* * *

Based on your recent posts, I would suggest asking these small questions in Slack channel instead for quick and small response.

---

<div class="post-metadata">

**Author:** ![brett\_knoss](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brett_knoss/32/13050_2.png) [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Post date:** [March 12, 2020, 1:30am UTC](https://discourse.julialang.org/t/way-to-hide-code-in-weaved-documents/35380/6 "2020-03-12T01:30:09Z")

</div>

I set up Slack, but what kind of apostrophy is after the line?

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [March 12, 2020, 5:38am UTC](https://discourse.julialang.org/t/way-to-hide-code-in-weaved-documents/35380/7 "2020-03-12T05:38:28Z")

</div>

so normally I believe you would do

````julia
julia```
[stuff here[
```

````

now you want to do

````julia
julia; echo=false```
[stuff here[
```

````
