Skip to content

Instantly share code, notes, and snippets.

@heathdrobertson
Last active November 13, 2019 22:04
Show Gist options
  • Save heathdrobertson/97416ec041e3206a5a97e45c9a445dba to your computer and use it in GitHub Desktop.
Save heathdrobertson/97416ec041e3206a5a97e45c9a445dba to your computer and use it in GitHub Desktop.
A NixOs Docker Container Build for JupyterLab
# see https://nixos.org/nixos/packages.html to search for more
with import <nixpkgs> {};
# with pkgs;
let
my-python-packages = python-packages: with python-packages; [
jupyterlab
pandas
numpy
requests
six
# other python packages you want
];
python-with-my-packages = python37.withPackages my-python-packages;
in
stdenv.mkDerivation {
name = "heath-python";
buildInputs = [python-with-my-packages nodejs];
shellHook = ''
jupyter labextension install @jupyterlab/toc
jupyter labextension install jupyterlab_vim
jupyter lab --allow-root --ip=0.0.0.0 --port=8080
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment