#!/usr/bin/env python # coding: utf-8 # In[1]: get_ipython().run_line_magic('matplotlib', 'inline') get_ipython().run_line_magic('time', 'from hikyuu.interactive import *') # In[2]: k = get_kdata('sh000001', -100) # In[5]: import pickle with open("temp", 'wb') as f: pickle.dump(k, f) # In[6]: hku_save(k, "temp") # In[7]: k2 = KData() hku_load(k2, "temp") # In[8]: k2.plot() # In[ ]: