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
-
ngrok_authtoken: Your ngrok authtoken. You can get it here: https://dashboard.ngrok.com/get-started/your-authtoken -
ngrok_down_url: The default download URL is for ngrok on Linux (x86-64) (https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz). Find other download URLs here: https://ngrok.com/download -
domain: Your custom domain URL, which will be used as the Jupyter server URL. If not set, ngrok will generate a random URL each time the server starts. To keep the server URL consistent at a low cost, you can create and use a free domain from ngrok here: https://dashboard.ngrok.com/domains -
password: The Jupyter server password.
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file colab_jupyter_server-0.8.2.tar.gz.
File metadata
- Download URL: colab_jupyter_server-0.8.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25e8b331715cb1c8727fab9846edbe594c25e1c0e2991af4828659ad2917ece5
|
|
| MD5 |
b99c6c9a803983bc6f0538b41307e445
|
|
| BLAKE2b-256 |
7303741443f4bfa318df8af178ff5c6510e9ddfcd9ccde6a567f5a76bc794aac
|
File details
Details for the file colab_jupyter_server-0.8.2-py3-none-any.whl.
File metadata
- Download URL: colab_jupyter_server-0.8.2-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea59593e76a0475c9441cb87bbd75c62e02c930b4dd81e3e35fb20aae7a27531
|
|
| MD5 |
8e8b1383716efe1759c29a6220369a8e
|
|
| BLAKE2b-256 |
32ca298c641defc5d5eda3b8cab353bec2670c45db1c35a62b3b814f76f22bee
|