
      i                     :    d dl mZmZ d dlmZmZ  G d de      Zy)    )ABCabstractmethod)AnyCallablec            	       R    e Zd ZdZeedefd              Zedede	de	de	fd       Z
y)		_Launchera  Abstract base class for all Launchers.

    Launchers are responsible for the creation and instrumentation of new processes so that the
    :class:`~lightning.fabric.strategies.strategy.Strategy` can set up communication between all them.

    Subclass this class and override any of the relevant methods to provide a custom implementation depending on
    cluster environment, hardware, strategy, etc.

    returnc                      y)z]Returns whether this launcher can work in interactive environments such as Jupyter notebooks.N )selfs    /Volumes/fast/ai/experiments/voice-extract-mac/.venv/lib/python3.12/site-packages/lightning/fabric/strategies/launchers/launcher.pyis_interactive_compatiblez#_Launcher.is_interactive_compatible           functionargskwargsc                      y)zLaunches the processes.Nr   )r   r   r   r   s       r   launchz_Launcher.launch"   r   r   N)__name__
__module____qualname____doc__propertyr   boolr   r   r   r   r   r   r   r   r      s]     l4 l  l &x & &s &s & &r   r   N)abcr   r   typingr   r   r   r   r   r   <module>r      s    $  & &r   