[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shebang for python script?
From: |
jgart |
Subject: |
Re: shebang for python script? |
Date: |
Wed, 25 Jan 2023 06:12:24 +0000 |
or this shebang pinned to a particular commit?
#!/usr/bin/env nix-shell
#!nix-shell -i python3 -p "python3.withPackages(ps: [ ps.numpy ])"
#!nix-shell -I
nixpkgs=https://github.com/NixOS/nixpkgs/archive/d373d80b1207d52621961b16aa4a3438e4f98167.tar.gz
import numpy as np
a = np.array([1,2])
b = np.array([3,4])
print(f"The dot product of {a} and {b} is: {np.dot(a, b)}")
https://ryantm.github.io/nixpkgs/languages-frameworks/python/