In a code executor you have the possibility to throw notifications.

 

This can be very practical in asynchronus code.

 

You will need to import the UI library