Launch IPython from a Different Conda Env

reference

1
2
3
4
5
6
7
8
9
10
11
# activate virtual python environment
activate python27

# install package ipykernel in virtual environment
pip install ipykernel

# install ipython kernel for virtual environment
python -m ipykernel install --user --name py27 --display-name "Python (py27)"

# lunch jupyter QTConsole with specific kernel
jupyter qtconsole --kernel=py27

Using a Mirror Instead of Crossing the GFW

You have two choices to make it work inside the GFW.

  • mirror, which I recommend for better speed
  • VPN

mirror site

Latest install package mirror site

1
2
3
# add package source mirror
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes