##// END OF EJS Templates
Periodic Autosave added in background thread...
Mani chandra -
Show More
@@ -271,7 +271,7 b' class HistorySaveThread(threading.Thread):'
271 271 if self.exit_now==True:
272 272 break
273 273 #printing for debug
274 print("Saving...")
274 #print("Saving...")
275 275 self.IPython_object.save_history()
276 276
277 277 def magic_history(self, parameter_s = ''):
@@ -505,8 +505,6 b' class TerminalInteractiveShell(InteractiveShell):'
505 505 self.shell.history_thread.cond.release()
506 506 self.ask_exit()
507 507 else:
508 self.shell.history_thread = HistorySaveThread(self.shell, 60, False)
509 self.shell.history_thread.start()
510 508 self.ask_exit()
511 509
512 510 #------------------------------------------------------------------------
General Comments 0
You need to be logged in to leave comments. Login now