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, ColabFileDownloader, 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.4.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.4-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: colab_vscode_bridge-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 e2c5c0ab04a2f0042a9dd6138b907f28b46f41ba8809c7ccf0e7ae84f662b13f
MD5 6cb5509cff7f7a3035751a2e8cb391f5
BLAKE2b-256 0c3606f6ba825e2a75bd9fa691debbefe7843d459675f7531e95d402295db56b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for colab_vscode_bridge-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 309f78d187fc2a61cd7fb50882b60df1c7ebb9a44529a5664dae68735eacebbd
MD5 3cf5709bc5438c44f80dd381a1113755
BLAKE2b-256 2b24364aab2652d6c7822986436629314b847ac9fb097dbfa46e514986142b10

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