Run jupyter automatically in python datasci

This commit is contained in:
coolneng 2022-10-20 10:29:28 +02:00
parent c866015907
commit 09a07624c7
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 8 additions and 2 deletions

View File

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