Compare commits

..

2 Commits

Author SHA1 Message Date
1a0194144f Add standard nix files and nix-ld 2022-10-20 10:36:34 +02:00
09a07624c7 Run jupyter automatically in python datasci 2022-10-20 10:36:34 +02:00
2 changed files with 18 additions and 21 deletions

View File

@@ -1,23 +1,14 @@
{ {
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small"; description = "";
outputs = inputs.flake-utils.url = "github:numtide/flake-utils";
{ self, nixpkgs, ... }:
let outputs = { self, nixpkgs, flake-utils }:
system = "x86_64-linux"; flake-utils.lib.eachDefaultSystem
in (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{ {
devShells."${system}".default = devShell = import ./shell.nix { inherit pkgs; };
let }
pkgs = import nixpkgs { );
inherit system;
};
in
pkgs.mkShell {
packages = with pkgs; [
];
shellHook = "";
};
};
} }

View File

@@ -1,8 +1,8 @@
{ config, lib, pkgs, ... }: { pkgs ? import <nixpkgs> { } }:
with pkgs; with pkgs;
{ mkShell {
buildInputs = [ buildInputs = [
python3 python3
python3Packages.jupyter python3Packages.jupyter
@@ -12,4 +12,10 @@ with pkgs;
python3Packages.matplotlib python3Packages.matplotlib
python3Packages.seaborn python3Packages.seaborn
]; ];
shellHook = ''
trap "kill 0" EXIT
jupyter notebook
'';
} }