help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

shebang for python script?


From: jgart
Subject: shebang for python script?
Date: Wed, 25 Jan 2023 06:09:35 +0000

Hi Guixers,

What's the current recommended way to do this in Guix?

#!/usr/bin/env nix-shell
#!nix-shell -i python3 -p "python3.withPackages(ps: [ ps.numpy ])"
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)}")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]