Skip to main content

Usefull tools for dealing with colab notebooks

Project description

Colab-Utils

Usefull tools for dealing with colab notebooks

Installation

pip install colab_notebook_utils

You will need to mount your drive in the first place.

from google.colab import drive
drive.mount('/content/drive')

Set workspace

You can get the workspace path that Colab use (which is different that the location of your notebook, it should be /content/)

from colab_notebook_utils.workspace import get_workspace_path
get_workspace_path()

You can automatically set this workspace as the location of your notebook, which is useful when you want to save files in the workspace, or when you want to use a relative path to a file in the workspace.

from colab_notebook_utils.workspace import set_workspace_as_cwd
set_workspace_as_cwd()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colab_notebook_utils-1.0.0.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

colab_notebook_utils-1.0.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page