Add pycharm to conda
This commit is contained in:
parent
203f0ff268
commit
368c992a74
1 changed files with 18 additions and 9 deletions
|
@ -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;
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue