Add pycharm to conda

This commit is contained in:
Tibo De Peuter 2023-09-27 14:49:29 +02:00
parent 203f0ff268
commit 368c992a74

View file

@ -14,21 +14,30 @@
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
installation-steps = ''
conda-shell -c 'conda-install'
printf 'Run `conda env create --name ai-practica --file environment.yaml` and exit.\n'
conda-shell && exit
'';
IDE-steps = ''
conda-shell -c pycharm-professional && exit
'';
CLI-steps = ''
printf 'Enter your enviroment by running `conda activate ai-practica`.\n'
conda-shell && exit
'';
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
conda
# You might want to add an IDE of your choice;
jetbrains.pycharm-professional
];
installation = ''
conda-shell -c 'conda-install'
printf 'Run `conda env create --name ai-practica --file environment.yaml` and exit.
conda-shell && exit
'';
shellHook = ''
printf 'Enter your enviroment by running `conda activate ai-practica`.\n'
conda-shell && exit
'';
shellHook = IDE-steps;
};
});
}