Suppressing location information for @info in Jupyter notebook

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

@info "hello world"

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

┌ 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!

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

using Logging
global_logger(ConsoleLogger())

sometime before you execute @info.

2 Likes

Great, thanks so much @jd-foster !

1 Like