Re: shebang for python script?

2023-01-27 Thread jgart
> An attempt here: Awesome! Thanks for sending that. Much appreciated! all best, jgart

Re: shebang for python script?

2023-01-27 Thread Simon Tournier
Hi, On ven., 27 janv. 2023 at 06:10, "jgart" wrote: > Should we document this approach in the manual somewhere? An attempt here: Cheers, simon

Re: shebang for python script?

2023-01-26 Thread jgart
Hi, thanks!! Should we document this approach in the manual somewhere? If so, where would be a good place to mention how to do this? > --8<---cut here---start->8--- > #!/usr/bin/env -S guix shell python -- python3 > import numpy as np > a = np.array([1,2])

Re: shebang for python script?

2023-01-25 Thread zimoun
Hi, On Wed, 25 Jan 2023 at 06:09, "jgart" wrote: > 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

Re: shebang for python script?

2023-01-24 Thread jgart
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 =

shebang for python script?

2023-01-24 Thread jgart
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)}")