File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -357,12 +357,14 @@ def _set_thread_pool(self):
357
357
358
358
@param .depends ('notifications' , watch = True )
359
359
def _setup_notifications (self ):
360
- from .io .notifications import NotificationArea
361
- from .reactive import ReactiveHTMLMetaclass
362
- if self .notifications and 'notifications' not in ReactiveHTMLMetaclass ._loaded_extensions :
363
- ReactiveHTMLMetaclass ._loaded_extensions .add ('notifications' )
360
+ if state ._notification_type is None :
361
+ from .io .notifications import NotificationArea
362
+ from .reactive import ReactiveHTMLMetaclass
363
+ state ._notification_type = NotificationArea
364
+ if self .notifications and 'notifications' not in ReactiveHTMLMetaclass ._loaded_extensions :
365
+ ReactiveHTMLMetaclass ._loaded_extensions .add ('notifications' )
364
366
if not state .curdoc :
365
- state ._notification = NotificationArea ()
367
+ state ._notification = state . _notification_type ()
366
368
367
369
@param .depends ('disconnect_notification' , 'ready_notification' , watch = True )
368
370
def _enable_notifications (self ):
You can’t perform that action at this time.
0 commit comments