'Reimplemented to refresh the namespacebrowser after kernel
restarts'

def _handle_status(self, msg):

    state = msg['content'].get('execution_state', '')
    msg_type = msg['parent_header'].get('msg_type', '')
    if ((state == 'starting') and (not self._kernel_is_starting)):
        self._kernel_is_starting = True
    elif ((state == 'idle') and (msg_type == 'shutdown_request')):
        if (self.namespacebrowser is not None):
            self.set_namespace_view_settings()
            self.refresh_namespacebrowser()
    else:
        super(NamepaceBrowserWidget, self)._handle_status(msg)
