From a05122c8bc34ae374bf8260c6925a74e9ea718ed Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 20 Oct 2022 10:29:28 +0200 Subject: [PATCH] Run jupyter automatically in python datasci --- python-data-science.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python-data-science.nix b/python-data-science.nix index 345cf04..fb3cc62 100644 --- a/python-data-science.nix +++ b/python-data-science.nix @@ -2,7 +2,7 @@ with pkgs; -{ +mkShell { buildInputs = [ python3 python3Packages.jupyter @@ -12,4 +12,10 @@ with pkgs; python3Packages.matplotlib python3Packages.seaborn ]; + + shellHook = '' + trap "kill 0" EXIT + + jupyter notebook + ''; }