sidpy/io/interface_utils.py
def check_ssh():
    """
    Checks whether or not the python kernel is running locally (False) or remotely (True)

    Returns
    -------
    output : bool
        Whether or not the kernel is running over SSH (remote machine)

    Notes
    -----
    When developing workflows that need to work on remote or virtual machines
    in addition to one's own personal computer such as a laptop, this function
    is handy at letting the developer know where the code is being executed

    Examples
    --------
    >>> import sidpy
    >>> mode = sidpy.interface_utils.check_ssh()
    >>> print('Running on remote machine: {}'.format(mode))
    """
    return 'SSH_CLIENT' in os.environ or 'SSH_TTY' in os.environ

    Checks whether or not the python kernel is running locally (False) or remotely (True)

    Returns
    -------
    output : bool
        Whether or not the kernel is running over SSH (remote machine)

    Notes
    -----
    When developing workflows that need to work on remote or virtual machines
    in addition to one's own personal computer such as a laptop, this function
    is handy at letting the developer know where the code is being executed

    Examples
    --------
    >>> import sidpy
    >>> mode = sidpy.interface_utils.check_ssh()
    >>> print('Running on remote machine: {}'.format(mode))
    
Checks whether or not the python kernel is running locally (False) or remotely (True)
Returns

output : bool
Whether or not the kernel is running over SSH (remote machine)

Notes

When developing workflows that need to work on remote or virtual machines
in addition to one's own personal computer such as a laptop, this function
is handy at letting the developer know where the code is being executed

Examples


Checks whether or not the python kernel is running locally ( False ) or remotely ( True ) Returns output : bool Whether or not the kernel is running over SSH ( remote machine ) Notes When developing workflows that need to work on remote or virtual machines in addition to one ' s own personal computer such as a laptop this function is handy at letting the developer know where the code is being executed Examples
def check_ssh():
    return 'SSH_CLIENT' in os.environ or 'SSH_TTY' in os.environ
def check_ssh ( ) : return 'SSH_CLIENT' in os . environ or 'SSH_TTY' in os . environ
Checks whether or not the python kernel is running locally (False) or remotely (True)
Returns
Checks whether or not the python kernel is running locally ( False ) or remotely ( True ) Returns
"""
    Checks whether or not the python kernel is running locally (False) or remotely (True)

    Returns
    -------
    output : bool
        Whether or not the kernel is running over SSH (remote machine)

    Notes
    -----
    When developing workflows that need to work on remote or virtual machines
    in addition to one's own personal computer such as a laptop, this function
    is handy at letting the developer know where the code is being executed

    Examples
    --------
    >>> import sidpy
    >>> mode = sidpy.interface_utils.check_ssh()
    >>> print('Running on remote machine: {}'.format(mode))
    """