| 21 Jul 2023 |
| Domen Kožar changed their profile picture. | 12:30:46 |
| 25 Jul 2023 |
Carl Thomé | Any easy way of setting up an ad-hoc Python environment with a few packages on the command line with nix run
I'm able to get nix run nixpkgs#jupyter working but can't get NumPy into a kernel without writing a shell.nix or similar first. Was thinking nix run 'nixpkgs#python3.withPackages(ps: with ps; [torch])' could work but it doesn't seem to.
| 00:19:12 |
Carl Thomé | Or like if it was possible to nest Python packages with nix shell but they don't end up in the same site-packages. | 00:21:14 |
Carl Thomé | Guess this is one area where nix-shell is still better?
nix-shell -p 'python310.withPackages (p: [ p.numpy ])' does what I expect.
| 00:25:18 |
| pbsds changed their display name from pbsds to pbsds (UTC+1). | 19:03:50 |
| 26 Jul 2023 |
@petrichor:envs.net | don't know if this is idiomatically correct, but nix develop --impure --expr "(import <nixpkgs> {}).python310.withPackages (p: [p.numpy])" env seems to work as intended | 07:37:30 |
@petrichor:envs.net | --impure is required because of the reference to <nixpkgs> which i think will be the channel rather than the flake registry entry | 07:38:31 |
@petrichor:envs.net | nix shell works without specifying env on the end | 07:42:58 |
@petrichor:envs.net | and you can use the flake registry entry like this, but it's more verbose:
nix shell --impure --expr '(builtins.getFlake "nixpkgs").legacyPackages.x86_64-linux.python3.withPackages (p: [p.numpy p.seaborn])'
| 07:44:39 |
@petrichor:envs.net | maybe this is slightly better?
nix shell --impure --expr '(import (builtins.getFlake "nixpkgs") {}).python3.withPackages (p: [p.numpy])'
| 07:47:04 |
@petrichor:envs.net | * and you can use the flake registry entry like this, but it's more verbose:
nix shell --impure --expr '(builtins.getFlake "nixpkgs").legacyPackages.x86_64-linux.python3.withPackages (p: [p.numpy])'
| 07:47:16 |
@petrichor:envs.net | * maybe this is slightly better because you don't have to remember what system you're using?
nix shell --impure --expr '(import (builtins.getFlake "nixpkgs") {}).python3.withPackages (p: [p.numpy])'
| 07:47:39 |
| 27 Jul 2023 |
| ribosomerocker joined the room. | 02:59:08 |
tomberek | I know there are reasons this is imperfect, but i played with allowing a dot-separated mechanism to compose withPackages: nix shell github:tomberek/-#python3With.numpy.requests -c python -c 'import numpy;print(0.1)' it does support tab-completion! | 20:33:36 |
| 29 Jul 2023 |
Bruno Rodrigues | In reply to @brodriguesco:matrix.org fellow Nixers, I'm a beginner and started a series of blog posts that might interest some of you. It focuses on R but I believe a lot of what I describe could be used for any language friends, I've now published part 3: https://www.brodrigues.co/blog/2023-07-30-nix_for_r_part3/ | 21:39:50 |
| 30 Jul 2023 |
| lgnus set a profile picture. | 09:54:12 |
| 3 Aug 2023 |
| @lotte:chir.rs changed their profile picture. | 12:41:37 |
| 7 Aug 2023 |
| @blipiblupi:matrix.org joined the room. | 04:54:09 |
jbedo | starting a new room for nixpkgs R language support discussions: #r:vk3.wtf | 06:26:39 |
| @blipiblupi:matrix.org left the room. | 06:38:42 |
@petrichor:envs.net | has anyone packaged up openrefine for nix? | 15:39:04 |
| kupac joined the room. | 18:41:35 |
| 9 Aug 2023 |
| @box1:matrix.org changed their display name from sb to sepiabrown. | 11:10:48 |
| 10 Aug 2023 |
| pbsds changed their display name from pbsds (UTC+1) to pbsds. | 14:54:49 |
| 12 Aug 2023 |
| @federicodschonborn:matrix.org joined the room. | 01:34:10 |
| 13 Aug 2023 |
| @10leej:matrix.org joined the room. | 01:24:44 |
| 14 Aug 2023 |
| Edmund Miller joined the room. | 22:39:29 |
| 15 Aug 2023 |
| @10leej:matrix.org left the room. | 19:34:02 |
| 16 Aug 2023 |
| @rvlobato:matrix.org joined the room. | 00:50:07 |
| 20 Aug 2023 |
| isomorph70 set a profile picture. | 07:57:56 |