How to backup and restore python current working environment? -


i want write function 'backup(filename)' store working data (objects?) under current environment of python, , 'restore(filename)' restore data/object again. r's save.image(file="workspace21.rdata") , load(file="workspace21.rdata"), can snapshot system.

how write "backup" & "restore" ? or there package existed can ?

a bit out of box, if important , need full solution, can run python inside virtual machine , use snapshots save session state. whether practical or not depends on use case.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -