2023-08-17 10:37:59 -04:00
|
|
|
{config, lib, pkgs, ...}: {
|
2024-05-10 14:38:47 -04:00
|
|
|
options = {
|
|
|
|
pythonPackages = lib.mkOption {
|
|
|
|
type = lib.types.anything;
|
|
|
|
default = p: with p; [];
|
|
|
|
example = p: with p; [ numpy scipy ];
|
|
|
|
description = "List of Python Packages installed";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
config = {
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
((pkgs.python3.withPackages config.pythonPackages).override (args: { ignoreCollisions = true; }))
|
|
|
|
];
|
|
|
|
pythonPackages = (p: with p; [
|
|
|
|
# Common Python Libraries
|
2023-08-17 10:37:59 -04:00
|
|
|
numpy
|
|
|
|
scipy
|
2024-05-10 14:38:47 -04:00
|
|
|
scikit-learn
|
2023-08-17 10:37:59 -04:00
|
|
|
pandas
|
2024-05-14 11:44:56 -04:00
|
|
|
openpyxl
|
2023-08-17 10:37:59 -04:00
|
|
|
matplotlib
|
2024-05-10 14:38:47 -04:00
|
|
|
ipympl
|
|
|
|
matplotlib-inline
|
2023-08-17 10:37:59 -04:00
|
|
|
seaborn
|
2024-05-10 14:38:47 -04:00
|
|
|
|
|
|
|
# Neural Data Processing Libraries
|
|
|
|
# Temporarily broken?: https://github.com/NixOS/nixpkgs/issues/259812
|
|
|
|
mne-python
|
2024-05-14 11:44:56 -04:00
|
|
|
edfio
|
2024-05-10 14:38:47 -04:00
|
|
|
nibabel
|
|
|
|
# View niftis!
|
|
|
|
ipyniivue
|
|
|
|
neo
|
|
|
|
|
|
|
|
# Neurosimulators
|
2024-04-24 09:42:07 -04:00
|
|
|
neuronpy
|
2024-05-10 14:38:47 -04:00
|
|
|
# nest with MPI is incompatible with Jupyter:
|
|
|
|
# https://www.nest-simulator.org/pynest-api/_modules/nest.html
|
|
|
|
# see pynestkernel comments about their workaround
|
|
|
|
(nest.override {
|
|
|
|
withMpi = false;
|
|
|
|
})
|
|
|
|
brian2
|
2024-07-31 15:35:41 -04:00
|
|
|
# SpiNNaker simulator
|
|
|
|
spynnaker
|
2024-05-10 14:38:47 -04:00
|
|
|
|
|
|
|
# Machine learning toolkits:
|
|
|
|
tensorflow
|
|
|
|
tensorboard
|
|
|
|
keras
|
|
|
|
edward
|
|
|
|
transformers
|
|
|
|
tflearn
|
|
|
|
torch
|
|
|
|
torchvision
|
|
|
|
torchsde
|
|
|
|
torchmetrics
|
|
|
|
torchio
|
|
|
|
torchdiffeq
|
|
|
|
botorch
|
|
|
|
lion-pytorch
|
2024-11-04 13:51:22 -05:00
|
|
|
pycuda
|
|
|
|
accelerate
|
|
|
|
datasets
|
2024-05-10 14:38:47 -04:00
|
|
|
]);
|
|
|
|
};
|
2023-08-17 10:37:59 -04:00
|
|
|
}
|