    def stop_polling(self):
        """Stop polling for single-user server's running state"""
        if self._poll_callback:
            self._poll_callback.stop()
            self._poll_callback = None
Stop polling for single-user server's running state
jupyterhub/spawner.py