INNER CODE UNIT · Python

is_interactive

modal-labs/modal-client · py/modal/app.py:280

    def is_interactive(self) -> bool:
        """mdmd:hidden"""
        return self._is_interactive_

    @property
    def _is_interactive_(self) -> bool:
        """mdmd:hidden
        Whether the current app for the app is running in interactive mode.

        Note: this method will likely be deprecated in the future.

        """
        # return self._name
        if self._running_app:
            return self._running_app.interactive
        else:
            return False

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…