    def ready(self):
        """Is this server ready to use?

        A server is not ready if an event is pending.
        """
        if self.pending:
            return False
        if self.server is None:
            return False
        return True
Is this server ready to use?

A server is not ready if an event is pending.
jupyterhub/spawner.py