{"id":19930836,"url":"https://github.com/anusikh/vscolab","last_synced_at":"2025-05-03T10:32:15.430Z","repository":{"id":55519711,"uuid":"318672361","full_name":"anusikh/VSColab","owner":"anusikh","description":"Use Google Colab GPU's and TPU's via an ssh connection locally in your device.","archived":false,"fork":false,"pushed_at":"2023-11-19T21:40:31.000Z","size":1176,"stargazers_count":17,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-11T10:57:43.945Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anusikh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-05T01:03:26.000Z","updated_at":"2024-10-01T20:08:08.000Z","dependencies_parsed_at":"2022-08-15T02:20:18.106Z","dependency_job_id":null,"html_url":"https://github.com/anusikh/VSColab","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anusikh%2FVSColab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anusikh%2FVSColab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anusikh%2FVSColab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anusikh%2FVSColab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anusikh","download_url":"https://codeload.github.com/anusikh/VSColab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224360340,"owners_count":17298319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T23:05:21.812Z","updated_at":"2024-11-12T23:05:22.288Z","avatar_url":"https://github.com/anusikh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VSColab\n\nUse Google Colab GPU's and TPU's via an ssh connection locally in your device.\n\n[![license](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE)\n![python version](https://img.shields.io/badge/python-3.6%2C3.7%2C3.8-blue?logo=python)\n\n### Installation:\n\nInstallation is easy!\n\n```\n$ pip install VSColab\n```\n\nUsing this package we can ssh into the Google Colab instance and also perform remote developement using VSCode.\n\n### What's New in 0.1.4:\n\n- `GetSSH()` function automates the process of getting the Tunnel URL.\n\n### Getting Started:\n\n- Install the package\n- Use the `Connect()` function to create an Ngrok tunnel, by passing a password string as a parameter.\n- Then Enter the Authentication Key (which can be obtained from:https://dashboard.ngrok.com/auth/your-authtoken) and press Enter.\n- To get the ssh command, run the `GetSSH()` function.\n- Use the `VSconfig()` function to get the contents for the VSCode Config file, by passing the Tunnel URL (which can be obtained from the `GetSSH()` function).\n- To kill the tunnel, use the `Kill()` function.\n\n### Colab starter notebook:\n\n[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1tZki6bp9x81jzn05zczR7aK03owsAscd?usp=sharing)\n\n### Remote development with VSCode:\n\n- First create a tunnel using the `Connect()` function.\n- Use the `VSconfig()` function to get the contents for the VSCode Config file, by passing the Tunnel URL (which can be obtained from the `GetSSH()` function).\n- Then install the **remote-ssh** plugin in VSCode, and click the button at the bottom left corner.\n- Then select the **Open Configuration Files..** option and enter the copied text there.\n- Then select the **Connect to Host..** option and Enter the password when asked.\n- **Viola!! A fully functional Development environment powered by the GPU's and TPU's of Google Colab**\n\n![](Screenshots/ss3.png)\n![](Screenshots/ss.png)\n![](Screenshots/ss2.png)\n\n### Note:\n\nIf the command `$ nvidia-smi` doesn't work in the ssh session, simply type :\n\n```\nexport LD_PRELOAD=/usr/lib64-nvidia/libnvidia-ml.so\n```\n\nThen press Enter.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanusikh%2Fvscolab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanusikh%2Fvscolab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanusikh%2Fvscolab/lists"}