Lunch IPython from differnt 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 mirror instead of cross GFW

You have 2 choices to make it work inside 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