# Suppressing location information for @info in Jupyter notebook

**URL:** https://discourse.julialang.org/t/suppressing-location-information-for-info-in-jupyter-notebook/90260
**Category:** General Usage
**Tags:** logging
**Created:** [November 14, 2022, 9:14pm UTC](https://discourse.julialang.org/t/suppressing-location-information-for-info-in-jupyter-notebook/90260 "2022-11-14T21:14:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Shuvomoy\_Das\_Gupta](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shuvomoy_das_gupta/32/10069_2.png) [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)
#### Post date: [November 14, 2022, 9:14pm UTC](https://discourse.julialang.org/t/suppressing-location-information-for-info-in-jupyter-notebook/90260/1 "2022-11-14T21:14:10Z")

</div>

Dear All,

Is there a way to suppress the location information for `@info` in Jupyter notebook? For example, if I type the following in a Jupyter notebook cell

```julia
@info "hello world"

```

and execute the cell, then the output in Jupyter notebook is

```julia
┌ Info: hello world
└ @ Main In[1]:1

```

I was wondering if there is a way to suppress the `└ @ Main In[1]:1` part somehow? Any suggestion is appreciated!

---

<div class="post-metadata">

### Author: ![jd-foster](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jd-foster/32/35824_2.png) [@jd-foster](https://discourse.julialang.org/u/jd-foster)
#### Post date: [November 15, 2022, 1:45am UTC](https://discourse.julialang.org/t/suppressing-location-information-for-info-in-jupyter-notebook/90260/2 "2022-11-15T01:45:04Z")

</div>

You can get this behaviour (similar to the REPL) by calling

```julia
using Logging
global_logger(ConsoleLogger())

```

sometime before you execute `@info`.

---

<div class="post-metadata">

### Author: ![Shuvomoy\_Das\_Gupta](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shuvomoy_das_gupta/32/10069_2.png) [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)
#### Post date: [November 15, 2022, 2:46am UTC](https://discourse.julialang.org/t/suppressing-location-information-for-info-in-jupyter-notebook/90260/3 "2022-11-15T02:46:27Z")

</div>

Great, thanks so much @jd-foster !
