2i2c-org / utoronto-image

User image for the UToronto Hub
BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

Activate conda environment before starting notebook server #50

Open yuvipanda opened 1 year ago

yuvipanda commented 1 year ago

From https://2i2c.freshdesk.com/a/tickets/594, they are getting errors about PROJ environment variables not being set. This is because the conda environment is not being activated before the notebook server starts. The PATH env vars we set account for most of what conda activate does, but turns out conda activate also sets environment variables!

So we should properly activate the conda environment before starting the notebook server.

david-yz-liu commented 1 year ago

@yuvipanda just curious, is activating conda a requirement/best practice for running Jupyter notebooks?

yuvipanda commented 1 year ago

I think PROJ is the only package I know of that is affected by this, as it uses the conda package to actually set environment variables. Otherwise, I am generally not too concerned :)