Prepare google colabpratory by one line of command
Project description
COLAB PREAMBLE
Prepare google colaboratory by one line of command
Installation
# from pypi
$ pip install colab-preamble
# alternatively, from github
$ git clone https://github.com/kota7/colab-preamble --depth 1
$ pip install -U ./colab-preamble
Example
Example colab notebook is here: colab-preamble-example.ipynb
Usage
import colab_preamble
colab_preamble_run(google_cloud_project="<project-id>", mount_drive=True)
# If no need to access google cloud services, no need to provide set google_cloud_project=None
# If no need to mount google drive, set mount_drive=False
Effect
When google_cloud_project
is given,
- Set the default project ID
- Run
gcloud config set ...
- Set
GOOGLE_CLOUD_PROJECT
environment variable
- Run
- Open the authentication prompt
- Introduce bigquery magic command
bq
When mount_drive
is true,
- Open the prompt and mount the google drive at '/content/drive'
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
colab-preamble-0.1.3.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file colab-preamble-0.1.3.tar.gz
.
File metadata
- Download URL: colab-preamble-0.1.3.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a2c734db1db5aa72a5ab684b00a4f58ff45b1cce3a84e1994bcc8906e511d24 |
|
MD5 | 120c01823ae8359d0e88db95abd5d4d3 |
|
BLAKE2b-256 | d0adaded89c618f4657ab80fc5a4819dd2d147a48871010a1bf5cb308a8c2293 |
File details
Details for the file colab_preamble-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: colab_preamble-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 156f49a8938b2ccfdd79e7796a5e70e44c174a007a9227cb0f8e02c282192b87 |
|
MD5 | e32408b55e9f9ccc8e40922bc548e580 |
|
BLAKE2b-256 | 37614df01716329ce94a6262174542ac39287d047722a78a23a77427bbd11661 |