How to set default environment for Anaconda / Jupyter?

I installed Anaconda for my machine learning course. I use it as IPython (Jupyter), in which we have lessons. OS - Ubuntu 14.04 LTS. Basically, I always run it from the terminal with:

jupyter notebook 

I created a new environment called su_env from the root environment (exact copy) with the package added. Now I am wondering: how to set the default su_env environment? I have a dozen laptops, so itโ€™s annoying to set up the environment for each laptop every time, in the โ€œweb GUIโ€ of Jupyter.

EDIT: I am interested in a solution where you do not need to install the environment before starting the laptop. My logic is that, somehow, automatically, jupyter installs the root environment on its own at startup. Because of this, I am wondering if it is possible to install any configuration file or something like that, so jupyter sets su_env instead of root . Also, if you know that this is not possible (and why), I would like to know this.

+5
virtualenv ipython jupyter-notebook jupyter anaconda
Aug 16 '16 at 20:50
source share
1 answer

First activate the conda environment from the command line, then start the laptop server.

For example:

 $ source activate env_name $ jupyter notebook 

jupyter notebook list of environments with env_name as default environment

Note. This can only work with environments created from Jupyter Notebook, and not environments created using conda create on the command line.

+3
Aug 22 '16 at 2:28
source share



All Articles