Skip to content

Instantly share code, notes, and snippets.

@jasonrm
Last active August 18, 2019 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonrm/4f5d956b9e2d2c9d123dda1791d8492f to your computer and use it in GitHub Desktop.
Save jasonrm/4f5d956b9e2d2c9d123dda1791d8492f to your computer and use it in GitHub Desktop.
shell.nix for running jupyter lab
{
pkgs ? import <nixpkgs> { },
}:
with pkgs;
python3.buildEnv.override {
ignoreCollisions = true;
extraLibs = with python3Packages; [
pip
ipykernel
jupyterlab
matplotlib
numpy
pandas
seaborn
opencv4
imutils
];
}
{
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