Created
September 19, 2024 13:27
-
-
Save ncalm/39a6da8ce1579de8eb3c198965506c01 to your computer and use it in GitHub Desktop.
Use this short script in Python in Excel to spill the list of available libraries to the grid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
result = subprocess.run(['pip', 'list'], capture_output=True, text=True) | |
lines = result.stdout.splitlines()[2:] | |
[tuple(line.split()[:2]) for line in lines] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment