Good morning everyone,
When using conda activate myenv in the jupyterlab console (spawn through k8s jupyterhub), I have this error :
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
Currently supported shells are:
- bash
- fish
- tcsh
- xonsh
- zsh
- powershell
See 'conda init --help' for more information and options.
IMPORTANT: You may need to close and restart your shell after running 'conda init'.
I tried to add this line in my config.yaml as advised in diverse others places.
hub:
extraConfig:
001_config: |
c.NotebookApp.terminado_settings = { 'shell_command': ['bash'] }
But that makes no difference in the console.
Could you advised me on how to fix this problem please ?
More info after debugging:
It seems that .bashrc is not sourced. when doing source .bashrc
in my console it works. How I can configurate it to be sourced automatically ?
Thanks