Skip to content

Instantly share code, notes, and snippets.

View bessex's full-sized avatar
🦀

Ben Essex bessex

🦀
View GitHub Profile
@bessex
bessex / env_export.py
Last active April 27, 2023 01:48
Export current conda environment with package compatibility versions, no prefix
import json
import os
import subprocess
import yaml
# Get the environment information as JSON
env_json = subprocess.run(['conda', 'env', 'export', '--json', '--no-builds'],
stdout=subprocess.PIPE, env=os.environ, shell=True).stdout
# Load the JSON data into a Python dictionary
@bessex
bessex / keybase.md
Created November 10, 2017 19:23
Keybase Proof

Keybase proof

I hereby claim:

  • I am bessex on github.
  • I am essex (https://keybase.io/essex) on keybase.
  • I have a public key ASAescG-qB68f0ZKMYW9gAe4VXbeGglQclX1RKMjk17tBAo

To claim this, I am signing this object: