sshspawner/sshspawner.py
def _options_form(self):
        """Populate a list of ssh targets on the pre_spawn form"""

        hosts = self.get_user_ssh_hosts()
        if not hosts:
            return """
            <label for="host">Input host for notebook launch:</label>
            <input type="text" name="host" class="form-control">
            """
        if self.ssh_host_prefix:
            options = "".join(
                [
                    f'<option value="{host}">{host[len(self.ssh_host_prefix):]}</option>'
                    for host in hosts
                ]
            )
        else:
            options = "".join(
                [f'<option value="{host}">{host}</option>' for host in hosts]
            )
        return f"""
        <label for="host">Select host for notebook launch:</label>
        <select name="host" class="form-control">{options}</select>
        """
Populate a list of ssh targets on the pre_spawn form
Populate a list of ssh targets on the pre_spawn form
Populate a list of ssh targets on the pre_spawn form
def _options_form(self):
        hosts = self.get_user_ssh_hosts()
        if not hosts:
            return """
            <label for="host">Input host for notebook launch:</label>
            <input type="text" name="host" class="form-control">
            """
        if self.ssh_host_prefix:
            options = "".join(
                [
                    f'<option value="{host}">{host[len(self.ssh_host_prefix):]}</option>'
                    for host in hosts
                ]
            )
        else:
            options = "".join(
                [f'<option value="{host}">{host}</option>' for host in hosts]
            )
        return f"""
        <label for="host">Select host for notebook launch:</label>
        <select name="host" class="form-control">{options}</select>
        """
def _options_form ( self ) : hosts = self . get_user_ssh_hosts ( ) if not hosts : return """
            <label for="host">Input host for notebook launch:</label>
            <input type="text" name="host" class="form-control">
            """ if self . ssh_host_prefix : options = "" . join ( [ f'<option value="{host}">{host[len(self.ssh_host_prefix):]}</option>' for host in hosts ] ) else : options = "" . join ( [ f'<option value="{host}">{host}</option>' for host in hosts ] ) return f"""
        <label for="host">Select host for notebook launch:</label>
        <select name="host" class="form-control">{options}</select>
        """
Populate a list of ssh targets on the pre_spawn form
Populate a list of ssh targets on the pre_spawn form
"""Populate a list of ssh targets on the pre_spawn form"""
self