Last active
November 13, 2019 22:04
-
-
Save heathdrobertson/97416ec041e3206a5a97e45c9a445dba to your computer and use it in GitHub Desktop.
A NixOs Docker Container Build for JupyterLab
This file contains 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
# 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