def configure_matplotlib():
"""Set Matplotlib backend to 'Agg', which is necessary on CodaLab docker image."""
import warnings
import matplotlib
with warnings.catch_warnings():
warnings.simplefilter('ignore')
matplotlib.use('Agg') # needed when running from server
评论列表
文章目录