Created
February 21, 2021 05:00
-
-
Save andoriyu/6cba299013516ee4194a4e2429a0307f to your computer and use it in GitHub Desktop.
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
{ pkgs, lib, pythonPackages }: | |
with pythonPackages; | |
buildPythonPackage rec { | |
pname = "python_speech_features"; | |
version = "0.6"; | |
src = fetchPypi { | |
inherit pname version; | |
sha256 = "049bp40mz9j0zgsxs82iihwpr5pzsxlv6b0nqffr5g34cisbzbm0"; | |
}; | |
} |
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
services.jupyterhub = { | |
enable = true; | |
kernels = { | |
python3 = let | |
lalalala = pkgs.callPackage ./python_speech_features.nix { }; | |
env = (pkgs.python3.withPackages (pythonPackages: | |
with pythonPackages; [ | |
ipykernel | |
pandas | |
scikitlearn | |
librosa | |
matplotlib | |
numpy | |
tensorflowWithCuda | |
pip | |
lalalala | |
pylint | |
])); | |
in { | |
displayName = "Python 3 for machine learning"; | |
argv = [ | |
"${env.interpreter}" | |
"-m" | |
"ipykernel_launcher" | |
"-f" | |
"{connection_file}" | |
]; | |
language = "python"; | |
logo32 = | |
"${env}/${env.sitePackages}/ipykernel/resources/logo-32x32.png"; | |
logo64 = | |
"${env}/${env.sitePackages}/ipykernel/resources/logo-64x64.png"; | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment