Compare commits

...

2 Commits

Author SHA1 Message Date
888ab89260 Add some commonly used python packages 2023-10-15 11:15:04 +02:00
b63934ea17 Add pandoc to PATH, nbconvert needs it sometimes 2023-10-15 11:14:53 +02:00

View File

@ -14,7 +14,7 @@
inherit (pkgs.texlive) inherit (pkgs.texlive)
scheme-basic # Base scheme-basic # Base
tcolorbox pgf environ etoolbox pdfcol parskip caption float upquote eurosym ucs fancyvrb grffile adjustbox hyperref titling booktabs enumitem ulem soul rsfs jknapltx cm-super # Other packages needed by jupyter. tcolorbox pgf environ etoolbox pdfcol parskip caption float upquote eurosym ucs fancyvrb grffile adjustbox hyperref titling booktabs enumitem ulem soul rsfs jknapltx cm-super # Other packages needed by jupyter.
tikz-among-us; tikz-among-us; # extra packages
}; };
jupyter-config = python.pkgs.buildPythonPackage rec { jupyter-config = python.pkgs.buildPythonPackage rec {
@ -46,6 +46,8 @@
}; };
python-environment = (pkgs.python310.withPackages (ps: with ps; [ python-environment = (pkgs.python310.withPackages (ps: with ps; [
ipympl numpy matplotlib scipy
jupyter-core jupyter jupyter-core jupyter
jupyter-config jupyter-ihaskell jupyter-config jupyter-ihaskell
])); ]));
@ -54,7 +56,7 @@
packages.python-environment = python-environment; packages.python-environment = python-environment;
packages.default = pkgs.writeScriptBin "start-notebook" '' packages.default = pkgs.writeScriptBin "start-notebook" ''
env PATH=$PATH:${latex}/bin ${python-environment}/bin/jupyter-notebook env PATH=$PATH:${latex}/bin:${pkgs.pandoc}/bin ${python-environment}/bin/jupyter-notebook
''; '';
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {