Copy environment.yml file to /tmp/work/ directory RUN conda install -c conda-forge ipykernel RUN conda install -c conda-forge nb_conda_kernels Allow users to create their own conda environments for notebooks Get the jupyter hub image of minimal-notebook from Docker hub Ensure the “nb_conda_kernels” package is installed in the root environment - have mentioned “nb_conda_kernels” in the docker file.Objective 1: We want to allow users to create conda environments using Jupyter lab UI which needs to be persisted across all user sessions meaning user 1 has created conda environment = xyz and the same environment can be accessed by user 2 when that user logs in to JH.Īs mentioned in the article below, I have followed the below steps. Turns out that this problem does not occur if you select version 3.3 instead of 3.3.0 together with answer conda create -n "myenv" python=3.3 ipythonĮverything works fine and python as well as ipython result to version python 3.3.5.I have installed the Jupyter hub on the AWS EKS cluster. Is it possible to access with the commands python and ipython both python version 3.3.0 in that specific environment, i.e. However, while this works fine for python here I get the error message /home/myname/miniconda3/envs/myenv/bin/python3: No module named IPython conda install python=3.3.0Ī solution would be to open IPython via python3 -m IPython However, ipython3 has python version 3.6.8 again. ![]() I can access the correct python with python3 which is at /home/myname/miniconda3/envs/myenv/bin/python3 ![]() Python has version 2.7.15 and path /usr/bin/pythonĪnd ipython has python version 3.6.8 and path /home/myname/.local/bin/ipython However when I activate the environment via conda activate myenv I have miniconda3 installed and since I would like to have an environment with python version 3.3.0, I create it via conda create -n "myenv" python=3.3.0
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |