Posts [ETC] VS code에서 Colab 사용하기 (for Windows)
Post
Cancel

[ETC] VS code에서 Colab 사용하기 (for Windows)

VS code에서 colab 실행


Colab

  • 다음의 코드를 실행 !pip install colab-ssh --upgrade from colab_ssh import launch_ssh_cloudflared, init_git_cloudflared launch_ssh_cloudflared(password="패스워드")
  • VSCode Remote SSH 에서 url 복사

VS Code

  • ctrl + shift + P
  • Remote-SSH: Connect to Host... 선택
  • url 넣기 ➡ Linux ➡ continue ➡ 비밀번호 입력
  • open folder (/content/drive/MyDrive/Colab Notebooks/)

  • ngrok 들어가서 ./ngrok authtoken ( 얻기 )
1
2
3
4
5
6
7
NGROK_TOKEN = '토큰' # ngrok 토큰
PASSWORD = '접속할 비밀번호' # 비밀번호 설정

!pip install colab-ssh

from colab_ssh import launch_ssh
launch_ssh(NGROK_TOKEN, PASSWORD)
This post is licensed under CC BY 4.0 by the author.