On Wed, Aug 2, 2017 at 5:05 PM, Michal Cokina <[email protected]> wrote:
Hi, > > I am using a DockerSpawner for JupyterHub. I have a several users whoes > are capable to authenticate by custom Authentication class. If user is > first time logged, new docker container (jupyterhub/singleuser) is spawned > in standard way, host folder for this user is created and mounted on > container. Everything is working fine. Now, I would like to python > virtualenv created in host. Is it possible to use such environment as > kernel in container after login? Further, is it possible to create kernel > in docker container and use it for logged user and where are kernels for > jupyterhub users stored? I cannot figure it out. > If you are using DockerSpawner, then kernels are inside the docker images/containers your users are using. You can create virtualenvs in there, and the most logical way to do that is by creating the virtualenv in your Dockerfile. Once you have a virtualenv, you can make it available as a kernelspec to other envs by running in the env: source env/bin/activate ipython kernel install --name my-env-name Then a kernel for that env will be available to notebooks running in any env. -Min > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Project Jupyter" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/jupyter/89c15510-3b62-4ea3-a0a2-194fb7f8cac7%40googlegroups.com > <https://groups.google.com/d/msgid/jupyter/89c15510-3b62-4ea3-a0a2-194fb7f8cac7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAHNn8BW1Knn-dO1FEFiL%2Bk_mimF5GHENkixfEZPZFDvNobZS_w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
