This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib | |
gui_env = ['Qt4Agg','WXAgg', 'TKAgg','GTKAgg'] | |
for gui in gui_env: | |
try: | |
print("testing", gui) | |
matplotlib.use(gui,warn=False, force=True) | |
from matplotlib import pyplot as plt | |
break | |
except: | |
continue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as mp | |
import nlp.processing.storage as nps | |
import numpy as np | |
import json | |
from datagov_model_convert import gen_key | |
MODEL = nps.LocalStorage() | |
MODEL.restore('model.dict.pkl') | |
# print(len(MODEL.save)) |