From: "jgart" <jgart@dismail.de>
To: help-guix@gnu.org
Subject: Re: shebang for python script?
Date: Wed, 25 Jan 2023 06:12:24 +0000 [thread overview]
Message-ID: <24876f2dbafc1bccac95e5867ce08e8d@dismail.de> (raw)
In-Reply-To: <b689e8c713beda5b748c9817c58c5fd5@dismail.de>
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/
next prev parent reply other threads:[~2023-01-25 6:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-25 6:09 shebang for python script? jgart
2023-01-25 6:12 ` jgart [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=24876f2dbafc1bccac95e5867ce08e8d@dismail.de \
--to=jgart@dismail.de \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.