Python 2 is installed in a separate conda
environment called py27
. This container uses the anaconda python distribution.
In [1]:
!which python
In [2]:
!python --version
In python 2 notebooks you get everything that is installed in this environment. This container is a "base" container, to further customise it you should create your own docker
container that inherits from this one and install things there.
To quickly try out a new package from the notebook simply run:
In [3]:
!conda install -n py27 -y scikit-learn
In [4]:
# You now have scikit-learn
import sklearn
In [ ]: