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
Post a Comment