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-preample
# alternatively, from github
$ git clone https://github.com/kota7/colab-preample --depth 1
$ pip install -U ./colab-preample
Usage
import colab_preample
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.1.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for colab_preamble-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7e6baec2a91f5ac437dbe2324ea4af2aa0f02e7139eadcf85811439ed0dd6d5 |
|
MD5 | 386b71b620ca2bd36abd309a4ca0fe2a |
|
BLAKE2b-256 | f0d1d0abfdf1c9a3e80d4653ffce22b132332fc38d6af2a8e1f13d0fd6f98c52 |