Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matplotlib imshow function does not work #115

Closed
maryamag85 opened this issue Sep 16, 2017 · 1 comment
Closed

matplotlib imshow function does not work #115

maryamag85 opened this issue Sep 16, 2017 · 1 comment

Comments

@maryamag85
Copy link

I am using kaggle/python image in docker to run a kaggle kernel but imshow does not work on my system. nothing is shown, even no plot window pops up. I have the ubuntu 16, pycharm 2017 connected to the latest docker version. any suggestion?

@nerdcha
Copy link
Contributor

nerdcha commented Sep 17, 2017

Ah yes, anything graphics-related can get tricky when containers are involved. I'm not an expert on that, but if you want to explore a general solution, there are ideas here and here.

The solution that I myself use is a bit hacky, but it works. If you start a Jupyter notebook server inside the container, you can connect to it using a web browser, and then graphics and plot output will show up in the notebook as you edit. You'd do that with something like docker run -v $PWD:/tmp/working -w=/tmp/working -p 8888:8888 --rm -it kaggle/python jupyter notebook --no-browser --ip="\*" --notebook-dir=/tmp/working on the host, and then pointing your browser to http://localhost:8888.

Hope that helps!

@nerdcha nerdcha closed this as completed Sep 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants