Matplotlib webagg server does not work with stable latest

Issue #70 resolved
Jørgen Dokken created an issue

Running the following command docker run -p 127.0.0.1:8000:8000 -v $(pwd):/home/fenics/shared -ti quay.io/fenicsproject/stable:latest and then the following script for plotting a mesh,

from dolfin import *
mesh = UnitSquareMesh(10,10)
import matplotlib.pyplot as plt
plot(mesh)
plt.show()

yields the following web-address: To view figure, visit http://127.0.0.1:8000 However, with dolfin.2018.1.0, this address is not accessible.

Comments (3)

  1. Christopher Howard

    I was able to get this working by changing the .matplotlibrc file inside the container:

    webagg.address: 0.0.0.0
    
  2. Log in to comment