[IPython-dev] Using pip within notebooks

Jacob Vanderplas jakevdp at cs.washington.edu
Fri Oct 16 17:49:38 EDT 2015


Hi folks,
One quick question – in previous IPython versions, I had often used ``!pip
install`` commands from within the notebook to make sure packages are
installed before importing them. I've noticed that in newer versions of the
notebook this doesn't work – the kernel and the shell are not necessarily
in sync: it seems that pip is by default tied to the python version which
ran ``jupyter notebook``, rather than the Python version running the kernel.

Is there anything I can do to make pip work in the notebook again? Thanks!
   Jake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20151016/1e1093f5/attachment.html>


More information about the IPython-dev mailing list