def _run_code(self):
    os.system(f'fuser -n tcp -k {self.port}')
    if (self._mount and colab_env):
        drive.mount('/content/drive')
    if self.password:
        code_cmd = f'PASSWORD={self.password} code-server --port {self.port} --disable-telemetry'
    else:
        code_cmd = f'code-server --port {self.port} --auth none --disable-telemetry'
    with subprocess.Popen([code_cmd], shell=True, stdout=subprocess.PIPE, bufsize=1, universal_newlines=True) as proc:
        for line in proc.stdout:
            print(line, end='')
def _run_code(self):
    os.system(f'fuser -n tcp -k {self.port}')
    if (self._mount and colab_env):
        drive.mount('/content/drive')
    if self.password:
        code_cmd = f'PASSWORD={self.password} code-server --port {self.port} --disable-telemetry'
    else:
        code_cmd = f'code-server --port {self.port} --auth none --disable-telemetry'
    with subprocess.Popen([code_cmd], shell=True, stdout=subprocess.PIPE, bufsize=1, universal_newlines=True) as proc:
        for line in proc.stdout:
            print(line, end=)