Skip to main content

A utility package that fills functionality gaps in the Colab extension for VS Code. It provides helper functions for tasks not natively supported, including simplified Kaggle authentication, direct file uploads from Colab to Kaggle, and downloading small files from a Colab runtime to the local VS Code environment.

Project description

Colab-VsCode-Bridge

A Python package to complete functionalities missing from the VS Code Colab extension.

Overview

This package fills the gaps in VS Code's Colab extension by providing:

  • Upload files from localhost to Colab kernel
  • Download smaller files from Colab kernel to local PC
  • Authenticate to Kaggle
  • Upload from kernel to Kaggle datasets

Features

  • Upload local files to Colab kernel while connected via VS Code
  • Download files from Colab kernel to local machine
  • Kaggle authentication integration
  • Upload datasets from Colab to Kaggle
  • Control dataset visibility (public/private)

Installation

pip install colab-vscode-bridge

Quick Start

from colab_vscode_bridge import upload_to_colab, download_from_colab, authenticate_kaggle, upload_to_kaggle

# Upload local file to Colab
upload_to_colab(destination_folder='/content/data.csv')

# Download from Colab to local
ColabFileDownloader("data/my_plot.png")

# Authenticate Kaggle
authenticate_kaggle()

# Upload to Kaggle
upload_to_kaggle(
    file_path=file_path,
    dataset_slug="kaggle-dataset-slug",
    dataset_title="kaggle-dataset-title",
    public=False,
)

Requirements

  • Python >= 3.8
  • VS Code with Colab extension
  • Active connection to Colab kernel in VS Code
  • Kaggle API credentials (for Kaggle features)

Note

Use the legacy Kaggle API token, as the Colab runtime currently uses Kaggle CLI v1.7.

Usage

Read https://github.com/ranidz/Colab-VsCode-Bridge/blob/main/docs/useDetails.md

Roadmap

  • Upload files from localhost to Colab kernel
  • Download files from Colab kernel to local PC
  • Kaggle authentication
  • Upload from kernel to Kaggle
  • Batch file operations
  • HuggingFace integration
  • Google Drive support
  • Compression for large files

Contributing

This is an early-stage project. Bug reports and feature requests are welcome via GitHub issues.

License

MIT License


Note : This is v0.1.1 - early release bridging VS Code Colab extension gaps.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colab_vscode_bridge-0.1.3.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colab_vscode_bridge-0.1.3-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file colab_vscode_bridge-0.1.3.tar.gz.

File metadata

  • Download URL: colab_vscode_bridge-0.1.3.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Windows/11

File hashes

Hashes for colab_vscode_bridge-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4c3b08bdf71be43079fdda5637aff30a7fb10b1e1e0fcc0c8e0982b268fef005
MD5 9a2ffcab0fcb464eab4ebee8f8ffd85f
BLAKE2b-256 0153270012f91bc65498f9bf13218e7f56f3a9624e9907d55f6c8d007d68f4f2

See more details on using hashes here.

File details

Details for the file colab_vscode_bridge-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for colab_vscode_bridge-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 441435bcf37e52d131d7698d8775a9777ddf8e0b03e932ccefbe782bb5ffa3e3
MD5 99832f4ba8416db29f5c4efdd33b1b55
BLAKE2b-256 24991bd55be921ee47770d5d02be04a1ea73a84693109ca00ee05c0fd3204212

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page