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)

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

Author

ranidzkellou


Note : This is v0.1.0 - 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.1.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.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: colab_vscode_bridge-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 4bde54d7022a781797cde8e298b7bc6f14741fed20c43b8daf055fde6c4c5bb4
MD5 6d0210c2abc46ccf53468e70b76e039c
BLAKE2b-256 5b3e7df02c15e29d3f00bcc967a792a1fa970c24d832f7631be249e1a5942876

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for colab_vscode_bridge-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44b4ed9d2ee961ae7ce7669ea87226f41c725753f287ac78a2d05e3cfb711392
MD5 22bd23e1d644f537eda86b19b1836c2f
BLAKE2b-256 41d75150cae673152ae6201720e9d6bb179aa510a1c33cdb6e6fbec2f73cc39e

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