Skip to content

Instantly share code, notes, and snippets.

@andoriyu
Created February 21, 2021 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andoriyu/6cba299013516ee4194a4e2429a0307f to your computer and use it in GitHub Desktop.
Save andoriyu/6cba299013516ee4194a4e2429a0307f to your computer and use it in GitHub Desktop.
{ pkgs, lib, pythonPackages }:
with pythonPackages;
buildPythonPackage rec {
pname = "python_speech_features";
version = "0.6";
src = fetchPypi {
inherit pname version;
sha256 = "049bp40mz9j0zgsxs82iihwpr5pzsxlv6b0nqffr5g34cisbzbm0";
};
}
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