diff options
author | Adrian Kummerlaender | 2024-11-23 17:35:33 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2024-11-23 17:35:33 +0100 |
commit | 4bf782b4da3664869c1c790d1fc80b41d435a409 (patch) | |
tree | 649d93b43be8b1c8423730865ee518530b6d383d /module/tasker.nix | |
parent | 7515de2756c6a997c62de18558f927e62863ed4c (diff) | |
download | nixos_home-4bf782b4da3664869c1c790d1fc80b41d435a409.tar nixos_home-4bf782b4da3664869c1c790d1fc80b41d435a409.tar.gz nixos_home-4bf782b4da3664869c1c790d1fc80b41d435a409.tar.bz2 nixos_home-4bf782b4da3664869c1c790d1fc80b41d435a409.tar.lz nixos_home-4bf782b4da3664869c1c790d1fc80b41d435a409.tar.xz nixos_home-4bf782b4da3664869c1c790d1fc80b41d435a409.tar.zst nixos_home-4bf782b4da3664869c1c790d1fc80b41d435a409.zip |
Update, remove deprecated Jupyter flake
Diffstat (limited to 'module/tasker.nix')
-rw-r--r-- | module/tasker.nix | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/module/tasker.nix b/module/tasker.nix index 112da88..4f2e0fe 100644 --- a/module/tasker.nix +++ b/module/tasker.nix @@ -11,22 +11,6 @@ let #!/bin/sh exec ${pkgs.kitty}/bin/kitty -d ${dir} ${cmd} ''; - launchJupyterInDirectory = dir: jupyter: '' - #!/usr/bin/env fish - - for port in (seq 9000 9100) - if not ss --listening --oneline --tcp --no-header | awk '{ split($4, port, ":"); print port[2]+0 }' | grep -q $port - set free_port $port - break - end - end - - set token (head /dev/urandom | tr -dc A-Za-z0-9 | head -c 40) - ${jupyter}/bin/jupyter-lab --no-browser --port=$free_port --NotebookApp.token=$token & - sleep 2 - ${pkgs.chromium}/bin/chromium --app="http://localhost:$free_port/?token=$token" - kill (jobs -lp) - ''; taskivations = pkgs.lib.mapAttrsToList (name: conf: let command = pkgs.writeTextFile { @@ -43,12 +27,6 @@ let environment = launchTerminalInDirectory conf.directory '' nix-shell ${builtins.unsafeDiscardStringContext conf.environment.drvPath} --command fish ''; - - python-console = launchCommandInDirectory "~/" '' - nix-shell ${builtins.unsafeDiscardStringContext conf.environment.drvPath} --command jupyter-qtconsole - ''; - - jupyter-lab = launchJupyterInDirectory conf.directory conf.environment; }; }; |