ck-env icon indicating copy to clipboard operation
ck-env copied to clipboard

Load env

Open fvella opened this issue 7 years ago • 3 comments

Is there some command to load the environment (ie., add LD_LIBRARY_PATHs of the dependencies) for a specific package/program? It could be useful when you debug some program.

Thanks J

fvella avatar Sep 01 '17 13:09 fvella

Hi @fvella - I believe I did it. You can try the new functionality as following:

$ ck virtual env --tags=caffe $ ck virtual env:{SOME UID}

It will start a new shell but will reuse all previous environment ...

I also did similar command to jump to a given entry:

$ ck cd {some CK entry}

however you will need to update CK kernel for that ...

If it's ok, please close this ticket! Thanks!

gfursin avatar Sep 03 '17 10:09 gfursin

I believe we now routinely use ck virtual env with tags and combinations of tags, so this ticket looks like resolved to me.

ens-lg4 avatar Oct 31 '18 11:10 ens-lg4

Actually, there is one more thing which I think could be useful (unless I did it already, but I think it was just in ToDo). When we run a program "ck run program:{something}" it would be great to add some flag (like --virtual) which would preload all dependencies, but then rather than running the command line, will just open this virtual environment ... I had such need several times already... So I would keep this ticket for that ...

gfursin avatar Oct 31 '18 13:10 gfursin