Cannot conda activate virtual env from notebook

I’m not able to activate virtual env from notebook.
I’m getting bellow error

CommandNotFoundError: Your shell has not been properly 
configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>

However, using terminal I’m able activate my virtual env by running below commands
source ~/.bashrc
(base) user@redacted-2ecom: conda activate dbconnect

Any help is really appreciated

Hi! Could you explain in detail what you mean by

It’s unclear what steps you tried to do.