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, simply 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file VSColab-0.1.4.tar.gz.
File metadata
- Download URL: VSColab-0.1.4.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9386375c9b97cc21c16012b071b173b8edbf18662d0d480763c36efa1aeaaedb
|
|
| MD5 |
6e73f8a217cc94b7bb98b5d3e2c5b932
|
|
| BLAKE2b-256 |
2a6e4c9be4f035edc5f17c60b24796b0f0cf7fb534334a1634c0a84177f1129f
|
File details
Details for the file VSColab-0.1.4-py3-none-any.whl.
File metadata
- Download URL: VSColab-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5c005c22fb8e6362c7c4fa610b94c69bc12cc3fe70d6609d18747935f4c2081
|
|
| MD5 |
a73ed5342188e19ae0b0b124b678fc1f
|
|
| BLAKE2b-256 |
01ea4a4cfa55ece1a0a599c1bbe5ddaa30fa203b778d6ad647aa3e05a3a2e2d8
|