Prepare google colabpratory by one line of command
Project description
COLAB PREAMPLE
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-preample
Usage
import colab_preamble
colab_preample_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
env variable
- Run
- Open the authentication prompt
- Introduce bigquery magic command
bq
When mount_drive
is true,
- Google drive is mounted 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.2.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for colab_preamble-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6abfcffc145e80ef11bfa30541c4a43a39cbc47e002323d86137e9b2e8c1606d |
|
MD5 | f6ec2dc7a06073f59d5c3edeca5cbe9b |
|
BLAKE2b-256 | f6b7c8276246fe722812d2576e9e64e72f63bae14f83c05af2e1d64a46e763a2 |