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 GUI in a Docker container #801

Open
yunjunz opened this issue Jun 28, 2022 · 0 comments
Open

matplotlib GUI in a Docker container #801

yunjunz opened this issue Jun 28, 2022 · 0 comments

Comments

@yunjunz
Copy link
Member

yunjunz commented Jun 28, 2022

In the docker container, testings, including MintPy/tests/smallbaselineApp.py, on my laptop work very well, except for one issue: when I started an interactive shell session as below, view.py seems to work well (normal print-out messages), except that the plotting window is not popping up. Any idea?

docker run -it -v ~/data:/home/mambauser/data --name mintpy ghcr.io/insarlab/mintpy:latest
cd data/test/FernandinaSenDT128/mintpy
view.py velocity.h5

FYI, view.py velocity.h5 --nodisplay also works (successfully plotted and saved the figure into a file). So this seems to be an interactive plotting window issue.

Originally posted by @yunjunz in #696 (review)

The issue does come down to X.Org windows system issue, that is a bit annoying to work around and can induce some security risks. Further reading:

There's a couple tools that solve a lot of the issues that are more-or-less straightforward to use that set up X.Org windows system between the host and the container:

But since we include Jupyter, that's the easiest/best path to plotting figures in the container.

Originally posted by @jhkennedy in #696 (comment)

@yunjunz yunjunz changed the title @yunjunz the issue does come down to X.Org windows system issue, that is a bit annoying to work around and can induce some security risks. Further reading: matplotlib GUI in a Docker container Jun 28, 2022
@insarlab insarlab deleted a comment from sisi-ali Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant