def __init__(self, port=10000, password=None, authtoken=None, mount_drive=False, code=True, lab=False):
    self.port = port
    self.password = password
    self.authtoken = authtoken
    self._mount = mount_drive
    self._code = code
    self._lab = lab
    if self._lab:
        self._start_server()
        self._run_lab()
    if self._code:
        self._install_code()
        self._install_extensions()
        self._start_server()
        self._run_code()
def __init__(self, port=10000, password=None, authtoken=None, mount_drive=False, code=True, lab=False):
    self.port = port
    self.password = password
    self.authtoken = authtoken
    self._mount = mount_drive
    self._code = code
    self._lab = lab
    if self._lab:
        self._start_server()
        self._run_lab()
    if self._code:
        self._install_code()
        self._install_extensions()
        self._start_server()
        self._run_code()