Skip to main content

ColabCode

license PyPI version python version

Installation

$ pip install colabcode

Run code server on Google Colab or Kaggle Notebooks.

Getting Started

ColabCode also has a command-line script. So you can just run colabcode from command line.

colabcode -h will give the following:

usage: colabcode [-h] --port PORT [--password PASSWORD] [--mount_drive]

ColabCode: Run VS Code On Colab / Kaggle Notebooks

required arguments:
  --port PORT          the port you want to run code-server on

optional arguments:
  --password PASSWORD  password to protect your code-server from unauthorized access
  --mount_drive        if you use --mount_drive, your google drive will be mounted

Else, you can do the following:

# import colabcode
$ from colabcode import ColabCode
# run colabcode with by default options.
$ ColabCode()
# ColabCode has the following arguments:
# - port: the port you want to run code-server on, default 10000
# - password: password to protect your code server from being accessed by someone else.
#             Note that there is no password by default!
# - mount_drive: True or False to mount your Google Drive
$ ColabCode(port=10000, password="abhishek", mount_drive=True)

How to use it?

Colab starter notebook:    Open In Colab

ColabCode comes pre-installed with some VS Code extensions.

See an example in youtube video

YouTube Video

License

MIT

Metadata

Release files for colabcode 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for colabcode 0.3.0
File Size Uploaded
colabcode-0.3.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for colabcode 0.3.0
File Interpreter ABI Platform
colabcode-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / colabcode-0.3.0.tar.gz

Download URL colabcode-0.3.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ece72a9200571e1a6e90d23c084f8211f7cbe98ce876119f48a05f7206ed1b50
BLAKE2b-256 checksum
How to use checksums
11d152c5b71d5b82b81a60903e6a1f732c26a5347c04e3fc3ae2ab8a01293ccc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2

Release files / colabcode-0.3.0-py3-none-any.whl

Download URL colabcode-0.3.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00e6060cd619b9e79beaca80574a37c3b743b4fd4f76430272a38067cd948781
BLAKE2b-256 checksum
How to use checksums
4b90f635c37e8e87cb9df76873edd35068e7b10cd20ac0ba4d2392ae7f307fe9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0.post20201207 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page