From 09a07624c7226950c85300f5550e4a1c43ae8c03 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 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/python-data-science.nix b/python-data-science.nix index 345cf04..878ec1d 100644 --- a/python-data-science.nix +++ b/python-data-science.nix @@ -1,8 +1,8 @@ -{ config, lib, pkgs, ... }: +{ pkgs ? import { } }: with pkgs; -{ +mkShell { buildInputs = [ python3 python3Packages.jupyter @@ -12,4 +12,10 @@ with pkgs; python3Packages.matplotlib python3Packages.seaborn ]; + + shellHook = '' + trap "kill 0" EXIT + + jupyter notebook + ''; }