Harmonises Jupyter and Colab notebook environments for consistent paths, imports, and working directories
Project description
colocal
Colab or local — same behaviour, same results.
colocal is a lightweight utility that harmonises notebook environments across Google Colab and local Jupyter.
It takes care of paths, imports, and working directories automatically, so your notebooks behave consistently no matter where you run them.
✨ Features
- Seamless dual support → Detects whether you’re in Colab or Jupyter and adjusts automatically.
- Clean imports → Adds your repository root to
sys.path. - Consistent working directory → Sets
cwdto the notebook’s folder, avoiding../../hacks. - Branch-aware in Colab → Parses the Colab badge, checks out the correct branch, and mirrors the repo structure.
- Reproducibility → Run the same notebook in Colab or locally with identical behaviour.
🚀 Usage
import colocal
colocal.setup()
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file colocal-2025.11.6.1303.tar.gz.
File metadata
- Download URL: colocal-2025.11.6.1303.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd8fc140c01dcb2a61801a91bd9b5c7683869fee6151be7b178f9c42eb816c39
|
|
| MD5 |
99dc7375475e4b46e8e8095a16000221
|
|
| BLAKE2b-256 |
18a20e8d3ef4d9020e5bbea49c642288cf8bd0a2aef97d3727da1bd5fcc3665d
|
Provenance
The following attestation bundles were made for colocal-2025.11.6.1303.tar.gz:
Publisher:
publish.yml on project-ida/colocal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
colocal-2025.11.6.1303.tar.gz -
Subject digest:
bd8fc140c01dcb2a61801a91bd9b5c7683869fee6151be7b178f9c42eb816c39 - Sigstore transparency entry: 675976378
- Sigstore integration time:
-
Permalink:
project-ida/colocal@c3a2885029db54c8f7e1c9e2a987b79e5f59d0f5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/project-ida
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c3a2885029db54c8f7e1c9e2a987b79e5f59d0f5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file colocal-2025.11.6.1303-py3-none-any.whl.
File metadata
- Download URL: colocal-2025.11.6.1303-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3c39b2d86a656653441fd4f5a9e359c5cb0fd0812e70e055ee691ba9d2ff150
|
|
| MD5 |
5e4e700efa527918451613e1dbb8a37e
|
|
| BLAKE2b-256 |
bcdf1aafe8ae1c791ba7fbc807efa01859e0cfa4801298b20bffdc1aa1cef02a
|
Provenance
The following attestation bundles were made for colocal-2025.11.6.1303-py3-none-any.whl:
Publisher:
publish.yml on project-ida/colocal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
colocal-2025.11.6.1303-py3-none-any.whl -
Subject digest:
c3c39b2d86a656653441fd4f5a9e359c5cb0fd0812e70e055ee691ba9d2ff150 - Sigstore transparency entry: 675976384
- Sigstore integration time:
-
Permalink:
project-ida/colocal@c3a2885029db54c8f7e1c9e2a987b79e5f59d0f5 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/project-ida
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c3a2885029db54c8f7e1c9e2a987b79e5f59d0f5 -
Trigger Event:
push
-
Statement type: