I installed ipython using pip from conda.
I’m using pytorch 0.4.1 from conda as well.
➜  goelakash conda list torch --verbose
# packages in environment at /Users/goelakas/miniconda3:
#
# Name                    Version                   Build  Channel
pytorch                   0.4.1           py36_cuda0.0_cudnn0.0_1    pytorch
torch                     0.4.1                     <pip>
torchvision               0.2.1                    py36_1    pytorch
➜  goelakash conda list ipython --verbose
# packages in environment at /Users/goelakas/miniconda3:
#
# Name                    Version                   Build  Channel
ipython                   6.5.0                     <pip>
ipython-genutils          0.2.0                     <pip>
ipython_genutils          0.2.0            py36h241746c_0