all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* shebang for python script?
@ 2023-01-25  6:09 jgart
  2023-01-25  6:12 ` jgart
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: jgart @ 2023-01-25  6:09 UTC (permalink / raw)
  To: help-guix

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)}")


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-01-27 15:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-25  6:09 shebang for python script? jgart
2023-01-25  6:12 ` jgart
2023-01-25  9:35 ` zimoun
2023-01-27  6:10 ` jgart
2023-01-27 11:15   ` Simon Tournier
2023-01-27 15:42   ` jgart

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.