SSH into Colab Notebooks and use VSCode for remote development
Project description
VSColab
Use Google Colab GPU's and TPU's via an ssh connection locally in your device.
Installation:
Installation is easy!
$ pip install VSColab
Using this package we can ssh into the Google Colab instance and also perform remote developement using VSCode.
Getting Started:
- Install the package
- Use the
Connect()
function to create an Ngrok tunnel, by passing a password string as a parameter. - Then Enter the Authentication Key (which can be obtained from:https://dashboard.ngrok.com/auth/your-authtoken) and press Enter.
- Use the
VSconfig()
function to get the contents for the VSCode Config file, by passing the URL of the Ngrok tunnel (which can be obtained from: https://dashboard.ngrok.com/status/tunnels) - To kill the tunnel, use the
Kill()
function.
Colab starter notebook:
Remote development with VSCode:
- First create a tunnel using the
Connect()
function. - Use the
VSconfig()
function to get the contents for the VSCode Config file, by passing the URL of the Ngrok tunnel (which can be obtained from: https://dashboard.ngrok.com/status/tunnels) and copy the Output. - Then install the remote-ssh plugin in VSCode, and click the button at the bottom left corner.
- Then select the Open Configuration Files.. option and enter the copied text there.
- Then select the Connect to Host.. option and Enter the password when asked.
- Viola!! A fully functional Development environment powered by the GPU's and TPU's of Google Colab
Note:
If the command $ nvidia-smi
doesn't work in the ssh session, simple type :
export LD_PRELOAD=/usr/lib64-nvidia/libnvidia-ml.so
Then press Enter.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
VSColab-0.1.1.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file VSColab-0.1.1.tar.gz
.
File metadata
- Download URL: VSColab-0.1.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff7ca504c693dc3afa84c7846da9973b98f2885bad444d6aa25006bcecc949c0 |
|
MD5 | 858d744d7517a0fa5e2ffbd700f4a1fe |
|
BLAKE2b-256 | 7848c794cd9a6465241fe429981249d8adfd59854a3767f49d911086f46cfcac |
File details
Details for the file VSColab-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: VSColab-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4f615873d41ab203e881515210e6d17345a4d19c7284e37c5436093f7ef7f55 |
|
MD5 | f9fcb84845572a4e029a31e239ab9acf |
|
BLAKE2b-256 | 14dcf7d1bb9745eae9a67234f6da3949d5190146bac4dba59d205c34f24deb16 |