unofficial mirror of help-guix@gnu.org 
 help / color / mirror / 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).