I just started to use FEniCS with Python. I am using Docker and a FEniCS enabled terminal to run the programs. It works well to run programs in this way but I cannot access the figures. According to the terminal: "To view figure, visit http://127.0.0.1:8000", but when I enter "http://127.0.0.1:8000" into Safari it says "Safari can't connect to the server". I have tried different browsers but the problem remains. I am using a Mac computer with MacOS Sierra and a Netgear router. How can I access http://127.0.0.1:8000?
I follow the FEniCS Tutorial vol1 (https://fenicsproject.org/pub/tutorial/pdf/fenics-tutorial-vol1.pdf) to launch docker and run the Python program. This means that I create a FEniCS session (container) by writing:
fenicsproject run
Then I run the Python program by typing for instance:
python ft01_poisson.py
I have also tried to open the port 127.0.0.1:8000 when I start the container by writing
docker run --rm -ti -v 'pwd':/home/fenics/shared
-w /home/fenics/shared quay.io/fenicsproject/stable:current '/bin/bash -l
-c "export TERM=xterm;bash -i"' -p 127.0.0.1:8000:8000
However, if I create a container in this way I cannot find the file that I want to run, even if I create the container when I am in the directory where the Python file is located.