From b1325b136118b1ea526dcf3aeb6d02597b3d7823 Mon Sep 17 00:00:00 2001 From: zhaojinjie Date: Sun, 22 Mar 2020 20:51:11 +0800 Subject: [PATCH] fix bug when use pycharm remote TkAgee cannot be imported when using pycharm remote. ImportError: Cannot load backend 'TkAgg' which requires the 'tk' interactive framework, as 'headless' is currently running --- EmoPy/src/callback.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EmoPy/src/callback.py b/EmoPy/src/callback.py index aea04bc..5fe283e 100644 --- a/EmoPy/src/callback.py +++ b/EmoPy/src/callback.py @@ -1,5 +1,5 @@ -import matplotlib as mpl -mpl.use('TkAgg') +# import matplotlib as mpl +# mpl.use('TkAgg') import matplotlib.pyplot as plt from keras.callbacks import Callback import os