Docker Community Forums

Share and learn in the Docker community.

Jupyter ignores kernel when run on windows

This command starts the docker container, spellrun/caffe:latest, from docker hub

docker run --shm-size=16g --ulimit memlock=-1 --ulimit stack=67108864 -it --rm -v /home/stefan/Dropbox:/data -p 8888:8888 spellrun/caffe:latest

I can start a jupyter notebook and a python3 kernel and check the python libraries it uses:

import sys
sys.path

gives

['/spell-utils',
 '/data/ArtAlgorithms/[deep-dream',
 '/usr/lib/python36.zip',
 '/usr/lib/python3.6',
 '/usr/lib/python3.6/lib-dynload',
 '',
 '/usr/local/lib/python3.6/dist-packages',
 '/usr/lib/python3/dist-packages',
 '/usr/local/lib/python3.6/dist-packages/IPython/extensions',
 '/root/.ipython']

If I switch to a python2 kernel in jupyter, I get

['',
 '/spell-utils',
 '/data/ArtAlgorithms/[deep-dream',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/local/lib/python2.7/dist-packages/IPython/extensions',
 '/root/.ipython']

but when i run the same command on a windows 10 pro machine, start the jupyter notebook, I get

['',
 '/spell-utils',
 '/workspace/DRP/[deep-dream',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/local/lib/python2.7/dist-packages/IPython/extensions',
 '/root/.ipython']

REGARDLESS OF WHICH KERNEL I CHOOSE IN JUPYTER.

The problem is that the packages i need are in the python3 site-package location, like caffe.