# Way to programmatically clear last println() statement in Jupyter cell?

**URL:** <https://discourse.julialang.org/t/way-to-programmatically-clear-last-println-statement-in-jupyter-cell/3582>\
**Category:** General Usage\
**Tags:** question\
**Created:** [May 7, 2017, 9:34pm UTC](https://discourse.julialang.org/t/way-to-programmatically-clear-last-println-statement-in-jupyter-cell/3582 "2017-05-07T21:34:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [May 7, 2017, 9:45pm UTC](https://discourse.julialang.org/t/way-to-programmatically-clear-last-println-statement-in-jupyter-cell/3582/2 "2017-05-07T21:45:42Z")

</div>

Addressed in [https://github.com/JuliaLang/IJulia.jl#clearing-output](https://github.com/JuliaLang/IJulia.jl#clearing-output)

Just had to add:

- `IJulia.clear_output(true)`

before the `println(...)`

---

_[View the full topic](https://discourse.julialang.org/t/way-to-programmatically-clear-last-println-statement-in-jupyter-cell/3582)._
