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
Install the library first:
pip install -U colab-jupyter-server
Then, run this command:
colab_jupyter_server --ngrok_authtoken=<NGROK_AUTHTOKEN>
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
-
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 to wait for the Jupyter server info to be retrieved. The default is 10s. A shorter wait time may result in failure to retrieve the Jupyter serrver 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
File details
Details for the file colab_jupyter_server-0.6.0.tar.gz
.
File metadata
- Download URL: colab_jupyter_server-0.6.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b68145823a3c217ba2911e67dfbc1dca22e44710443c6b6041a70b528e395f4 |
|
MD5 | f390d32443f1e09de1d49d5d71824a7c |
|
BLAKE2b-256 | a5ba4e3877740f8ca961b93feac7c4a80f43c861cbafbdf4644fa2be866a9b27 |
File details
Details for the file colab_jupyter_server-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: colab_jupyter_server-0.6.0-py3-none-any.whl
- Upload date:
- Size: 4.0 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 | cb7597214e6de95df5d3023661f931b2e427c8651afcd457c01c094a8a73df13 |
|
MD5 | 49762f4e747486d3c10d30aee1287047 |
|
BLAKE2b-256 | eed34f0c6f3293132ef84091b80facec0519c3710954e583cb05b8d5176500f7 |