Last active
August 18, 2019 00:42
-
-
Save jasonrm/4f5d956b9e2d2c9d123dda1791d8492f to your computer and use it in GitHub Desktop.
shell.nix for running jupyter lab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
pkgs ? import <nixpkgs> { }, | |
}: | |
with pkgs; | |
python3.buildEnv.override { | |
ignoreCollisions = true; | |
extraLibs = with python3Packages; [ | |
pip | |
ipykernel | |
jupyterlab | |
matplotlib | |
numpy | |
pandas | |
seaborn | |
opencv4 | |
imutils | |
]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
pkgs ? import <nixpkgs> { }, | |
mkShell ? pkgs.mkShell, | |
}: | |
with pkgs; | |
let | |
drv = import ./default.nix { inherit pkgs; }; | |
in | |
mkShell rec { | |
buildInputs = with pkgs; [ | |
stdenv | |
drv | |
]; | |
shellHook = '' | |
echo Envrionment Path (for PyCharm, etc.): ${drv} | |
exec jupyter lab | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment