    def wait_up(self, timeout=10, http=False, ssl_context=None, extra_path=""):
        """Wait for this server to come up"""
        if http:
            ssl_context = ssl_context or make_ssl_context(
                self.keyfile, self.certfile, cafile=self.cafile
            )

            return wait_for_http_server(
                url_path_join(self.url, extra_path),
                timeout=timeout,
                ssl_context=ssl_context,
            )
        else:
            return wait_for_server(
                self._connect_ip, self._connect_port, timeout=timeout
            )
Wait for this server to come up
jupyterhub/objects.py