Last active
August 24, 2021 18:36
-
-
Save fusetim/0b0534b3d451bce6aabb5a69a42b8ed4 to your computer and use it in GitHub Desktop.
MP2I Jupyter environment (based on Nix, Docker & JupyterWith)
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
let | |
jupyter = import (builtins.fetchGit { | |
url = https://github.com/tweag/jupyterWith; | |
}) {}; | |
iPython = jupyter.kernels.iPythonWith { | |
name = "python"; | |
packages = p: with p; [ numpy matplotlib ]; | |
}; | |
cKernel = jupyter.kernels.cKernelWith { | |
name = "c"; | |
packages = pkgs: with pkgs; [libcue]; | |
}; | |
ocamlKernel = (import (builtins.fetchurl { | |
url = https://gist.githubusercontent.com/fusetim/e59b17fc9bac31f2e43174fccd14d7e9/raw/278c713c0faedba35f7d120b87ffb41cca707eaa/default.nix; | |
}) { | |
name = "ocaml"; | |
packages = p: with p; []; | |
}); | |
jupyterEnvironment = | |
jupyter.jupyterlabWith { | |
kernels = [ ocamlKernel cKernel iPython ]; | |
extraPackages = p: [p.pandoc]; | |
}; | |
in | |
jupyter.mkDockerImage { | |
name = "jupyter-mp2i"; | |
jupyterlab = jupyterEnvironment; | |
} |
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
let | |
jupyter = import (builtins.fetchGit { | |
url = https://github.com/tweag/jupyterWith; | |
}) {}; | |
iPython = jupyter.kernels.iPythonWith { | |
name = "python"; | |
packages = p: with p; [ numpy matplotlib ]; | |
}; | |
cKernel = jupyter.kernels.cKernelWith { | |
name = "c"; | |
packages = pkgs: with pkgs; [libcue]; | |
}; | |
ocamlKernel = (import (builtins.fetchurl { | |
url = https://gist.githubusercontent.com/fusetim/e59b17fc9bac31f2e43174fccd14d7e9/raw/278c713c0faedba35f7d120b87ffb41cca707eaa/default.nix; | |
}) { | |
name = "ocaml"; | |
packages = p: with p; []; | |
}); | |
jupyterEnvironment = | |
jupyter.jupyterlabWith { | |
kernels = [ ocamlKernel cKernel iPython ]; | |
extraPackages = p: [p.pandoc]; | |
}; | |
in | |
jupyterEnvironment.env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See Jupyter-MP2I for more.