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
|
let
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
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 {
|
in {
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
conda
|
conda
|
||||||
|
|
||||||
|
# You might want to add an IDE of your choice;
|
||||||
|
jetbrains.pycharm-professional
|
||||||
];
|
];
|
||||||
installation = ''
|
shellHook = IDE-steps;
|
||||||
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
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue