Browser can't open matplotlib plot

python3 demo_poisson.py runs correctly and gives the message:
To view figure, visit http://127.0.0.1:8000
Press Ctrl+C to stop WebAgg server

When trying to open the address with my browser, however, I get the error:
“The connection was reset
The connection to the server was reset while the page was loading.”

This is true with Firefox and Safari. I’m using fenics 2018.1,
installed and running on docker updated to 2.0.0.3, running on
top of mac osx 10.14.4

I invoke fenics through the command:
docker run -ti -p 127.0.0.1:8000:8000 --name fenics --hostname fenics --rm -v $(pwd):/home/fenics/shared -w /home/fenics/shared quay.io/fenicsproject/stable:current

Any suggestions would be appreciated.

Maybe this could help: https://support.mozilla.org/en-US/questions/1056868

Thanks! Unfortunately, I had tried that already, at least with Safari. Safari is completely clean: no cache, no history, no plug-ins, no nada. The problem occurs with both Safari and Firefox.

Hello peb,

i have the same problem. Could you please tell me if you could solve the error?

Greetings, Julia

Hello Julia. I was not able to get it to work. I don’t think I identified the precise issue, but I think I remember that it was an issue getting the permissions right for the macOS to see the website served by the docker VM.

My workaround is to simply write output to files and then view the files. I use mostly png plots and paraview plots.

Hallo peb,

ok cool. Thank you for your answer.

Greetings, Julia