# IJulia hide code cells in notebook

**URL:** <https://discourse.julialang.org/t/ijulia-hide-code-cells-in-notebook/20622>\
**Category:** New to Julia\
**Created:** [February 10, 2019, 10:43am UTC](https://discourse.julialang.org/t/ijulia-hide-code-cells-in-notebook/20622 "2019-02-10T10:43:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucabrugnolini](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lucabrugnolini/32/2039_2.png) [@lucabrugnolini](https://discourse.julialang.org/u/lucabrugnolini)\
**Post date:** [February 10, 2019, 10:43am UTC](https://discourse.julialang.org/t/ijulia-hide-code-cells-in-notebook/20622/1 "2019-02-10T10:43:28Z")

</div>

Hi,

I am trying to hide the code cells in an IJulia notebook to show only the markdown text, fig, and tables in the output.

Here is an example with the IPython:  
[http://chris-said.io/2016/02/13/how-to-make-polished-jupyter-presentations-with-optional-code-visibility/](http://chris-said.io/2016/02/13/how-to-make-polished-jupyter-presentations-with-optional-code-visibility/)

Any idea?

Thanks

---

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [February 10, 2019, 2:24pm UTC](https://discourse.julialang.org/t/ijulia-hide-code-cells-in-notebook/20622/2 "2019-02-10T14:24:21Z")

</div>

Since the approach you linked seems to simply hide jupyter code cells by changing a CSS properties of those cells I would expect this exact approach to also work in an IJulia notebook (the kernel shouldn’t matter). Have you tried it?

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [February 10, 2019, 4:25pm UTC](https://discourse.julialang.org/t/ijulia-hide-code-cells-in-notebook/20622/3 "2019-02-10T16:25:45Z")

</div>

You can use JupyterLab instead, which (I believe) allows this.

---

<div class="post-metadata">

**Author:** ![lucabrugnolini](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lucabrugnolini/32/2039_2.png) [@lucabrugnolini](https://discourse.julialang.org/u/lucabrugnolini)\
**Post date:** [February 12, 2019, 9:26pm UTC](https://discourse.julialang.org/t/ijulia-hide-code-cells-in-notebook/20622/4 "2019-02-12T21:26:53Z")

</div>

Thanks for the answer. Unfortunately I have. It doesn’t work.

---

<div class="post-metadata">

**Author:** ![lucabrugnolini](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lucabrugnolini/32/2039_2.png) [@lucabrugnolini](https://discourse.julialang.org/u/lucabrugnolini)\
**Post date:** [February 15, 2019, 9:06pm UTC](https://discourse.julialang.org/t/ijulia-hide-code-cells-in-notebook/20622/5 "2019-02-15T21:06:42Z")

</div>

This works! Thanks a lot

---

<div class="post-metadata">

**Author:** ![keynescoefen](https://avatars.discourse-cdn.com/v4/letter/k/d2c977/32.png) [@keynescoefen](https://discourse.julialang.org/u/keynescoefen)\
**Post date:** [December 21, 2023, 7:38pm UTC](https://discourse.julialang.org/t/ijulia-hide-code-cells-in-notebook/20622/6 "2023-12-21T19:38:46Z")

</div>

How does one do that in Jupyter Lab? Adding a semicolon did not work.
