9 Replies
conda activate works when i login through the web terminal so it ensures that shell has been configured to run
conda activate
command
But this does not work in the template startup_script
fixed it by specifying full path of jupyter
/home/${data.coder_workspace.me.owner}/miniconda/envs/DL/bin/jupyter notebook --no-browser --NotebookApp.token='' --ip='*' --NotebookApp.base_url=/@${data.coder_workspace.me.owner}/${lower(data.coder_workspace.me.name)}/apps/jupyter-notebook/ 2>&1 | tee -a ~/build.log &
?
oh
i see you fixed it already
good, because I had no clue of what to do
but I am wondering why the startup_script could not initialize the conda env
well, did you try doing
conda init bash
?
in your startup_script
I am doing it while building my image and it adds to .bashrc
oh well
then
this
should work
also after we run
conda init bash
we can not activate in the same shell we need to open a new shell or source .bashrc
that could work but for now I am using the full path of jupyter and it is working.alright
mark as resolved if it's good for you
ok