Skip to content

Script and configuration files for Python environments

License

chrwittm/python-environments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Python Environments

A collection of reproducible Conda environments for my local development setup.

Each environment lives in its own folder (for example, playground or quarto-blogging) and contains:

  • a .yml file defining the environment (packages, Python version, and channels)
  • a rebuild script that recreates the environment safely and reproducibly

Shared helper scripts are stored under the helpers/ folder.

🧩 Repository Structure

python-environments/
β”œβ”€β”€ helpers/
β”‚   └── ensure_no_env.sh           # aborts if any environment is active
β”‚
β”œβ”€β”€ playground/
β”‚   β”œβ”€β”€ playground.yml             # lightweight experimental environment
β”‚   └── rebuild_playground.sh      # rebuild script for playground
β”‚
β”œβ”€β”€ quarto-blogging/
β”‚   β”œβ”€β”€ quarto-blogging.yml        # environment for nbdev + Quarto publishing
β”‚   └── rebuild_quarto-blogging.sh # rebuild script for blogging setup

🧰 Usage

To rebuild an environment, navigate to its folder and run the rebuild script:

cd playground
bash rebuild_playground.sh

Each script:

  • verifies that no Conda environment is currently active
  • removes the existing environment (if present)
  • recreates it from the corresponding .yml file

After rebuilding, activate the environment manually:

conda activate playground

🧠 Notes

  • All environments are managed by Miniforge (Conda/Mamba).
  • The base environment is kept clean and used only as a factory for creating other environments.
  • You can safely extend this structure by adding new folders with their own *.yml and rebuild scripts.

About

Script and configuration files for Python environments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages