matplotlib imports were in the wrong cell