Skip to main content

Colab/Kaggle as Jupyter a server and kernel

Project description

Colab Jupyter Server

I created this library because I want to use Colab/Kaggle as a remote Jupyter server, which I can connect to as a kernel for my local Jupyter notebook in VS Code.

How to Run

First, install the library:

pip install -U colab-jupyter-server

Then, run this command:

colab_jupyter_server \
--ngrok_authtoken=<YOUR_NGROK_AUTHTOKEN> \
--domain=<YOUR_DOMAIN> \
--password=<JUPYTER_SERVER_PASSWORD>

Expected Last Output

Waiting for Jupyter server URL... (10s)
Jupyter server URL: 
<YOUR_DOMAIN>?token=<JUPYTER_SERVER_PASSWORD>

Or, if domain is not set:

Waiting for Jupyter server URL... (10s)
Jupyter server URL: 
https://xy12-34-567-890-123.ngrok-free.app?token=<JUPYTER_SERVER_PASSWORD>

Command Parameters

  • port: The default port is 8889. Avoid using port 8888, as it is already in use by the notebook you open in Colab/Kaggle.

  • wait_time: The duration time to wait for the Jupyter server URL to be retrieved. The default is 10s. A shorter wait time may result in failure to retrieve the Jupyter server token, returning an empty token.

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_jupyter_server-0.8.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

colab_jupyter_server-0.8.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file colab_jupyter_server-0.8.3.tar.gz.

File metadata

  • Download URL: colab_jupyter_server-0.8.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for colab_jupyter_server-0.8.3.tar.gz
Algorithm Hash digest
SHA256 0cbcb96ce907cae68bf5850efef1447aa20d0d996d0eba222ba6c1b61fdae5af
MD5 e3216c606509d92f4c5ee261742c2728
BLAKE2b-256 4c6ce99c45e23c5726881ebed178eafaed92ce3d08b6b9d60015986a855c0222

See more details on using hashes here.

File details

Details for the file colab_jupyter_server-0.8.3-py3-none-any.whl.

File metadata

File hashes

Hashes for colab_jupyter_server-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 26c4c41acf5a9197539ec4e631680925af86ad1f860a8aa3489a7899f27dec4e
MD5 c3cbae0b10cd71cf91336a8cc8fe3ed5
BLAKE2b-256 0b6f0bdb091b8b6324e547d86433da40edf6c68b9e50f6e1783b0f1db6972c06

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