How do I ensure a notification is displayed to the user and not just added to the status bar?

The doc for Notfications added in Jupyterlab 3.6.0 say -

It is a good practice to limit the number of notifications sent to respect the user’s focus. Therefore by default, the notification won’t be displayed to the user. But the status bar will indicate that a new notification arrived.

(emphasis on “by default” mine)

How do I ensure a notification is displayed to the user and not just added to the status bar?

I tried setting various values to autoClose (exact code below) but they all resulted in the same effect - the notification did not show up; it was added to the status bar and did not close automatically after I opened the set of notifs by clicking on the bell icon in the status bar.

      Notification.emit("This is notif type - error", "error", {autoClose: false});
      Notification.emit("This is notif type - warning", "warning");
      Notification.emit("This is notif type - default", "default", {autoClose: 10});

It might be worth checking if doNotDisturbMode (“Silence all notifications”) is off:

If it is, then this sounds like a bug.

Thanks for pointing this out.

The flag Silence all notifications was set to False. Toggling it did not create any change in behavior.

I’m using Jupyterlab 3.6.1 and @jupyterlab/apputils 3.6.3. From docs, I dont see this behavior depending on a specific versuion of any other plugins/libraries.

I’ll log a bug request.

Logged Notification is not displayed but only added to the status bar · Issue #14357 · jupyterlab/jupyterlab · GitHub.

I’ve noted down a few more observations there.