    def active(self):
        """Return True if the server is active.

        This includes fully running and ready or any pending start/stop event.
        """
        return bool(self.pending or self.ready)
Return True if the server is active.

This includes fully running and ready or any pending start/stop event.
jupyterhub/spawner.py