{"action":"created","issue":{"url":"https://api.github.com/repos/IRkernel/IRkernel/issues/175","repository_url":"https://api.github.com/repos/IRkernel/IRkernel","labels_url":"https://api.github.com/repos/IRkernel/IRkernel/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/IRkernel/IRkernel/issues/175/comments","events_url":"https://api.github.com/repos/IRkernel/IRkernel/issues/175/events","html_url":"https://github.com/IRkernel/IRkernel/issues/175","id":98934168,"number":175,"title":"Add an option to automatically do save.image() / load('.RData')","user":{"login":"flying-sheep","id":291575,"avatar_url":"https://avatars.githubusercontent.com/u/291575?v=3","gravatar_id":"","url":"https://api.github.com/users/flying-sheep","html_url":"https://github.com/flying-sheep","followers_url":"https://api.github.com/users/flying-sheep/followers","following_url":"https://api.github.com/users/flying-sheep/following{/other_user}","gists_url":"https://api.github.com/users/flying-sheep/gists{/gist_id}","starred_url":"https://api.github.com/users/flying-sheep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flying-sheep/subscriptions","organizations_url":"https://api.github.com/users/flying-sheep/orgs","repos_url":"https://api.github.com/users/flying-sheep/repos","events_url":"https://api.github.com/users/flying-sheep/events{/privacy}","received_events_url":"https://api.github.com/users/flying-sheep/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IRkernel/IRkernel/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-04T10:04:06Z","updated_at":"2016-03-11T19:07:12Z","closed_at":null,"body":"Things to consider:\r\n\r\n## When?\r\n* Should it load before and save after each cell?\r\n* Should it load when starting the kernel and save when stopping the kernel or closing the notebook?\r\n* Make this configurable?\r\n\r\nBig datasets take time to save/load, so loading/saving for each cell would slow down everything in those cases.\r\n\r\n## Toggle?\r\n* Should we deactivate it per default and add an option to activate it?\r\n* Should we activate it per default unless a kernelspec option is set\r\n\r\nsince the feature has an effect before running a cell, we can’t just activate it per default and add an option to deactivate it\r\n\r\n## Where?\r\n* Should it load/save a `.RData`  next to the notebook or in the server root?"},"comment":{"url":"https://api.github.com/repos/IRkernel/IRkernel/issues/comments/195501712","html_url":"https://github.com/IRkernel/IRkernel/issues/175#issuecomment-195501712","issue_url":"https://api.github.com/repos/IRkernel/IRkernel/issues/175","id":195501712,"user":{"login":"poplav","id":2311898,"avatar_url":"https://avatars.githubusercontent.com/u/2311898?v=3","gravatar_id":"","url":"https://api.github.com/users/poplav","html_url":"https://github.com/poplav","followers_url":"https://api.github.com/users/poplav/followers","following_url":"https://api.github.com/users/poplav/following{/other_user}","gists_url":"https://api.github.com/users/poplav/gists{/gist_id}","starred_url":"https://api.github.com/users/poplav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poplav/subscriptions","organizations_url":"https://api.github.com/users/poplav/orgs","repos_url":"https://api.github.com/users/poplav/repos","events_url":"https://api.github.com/users/poplav/events{/privacy}","received_events_url":"https://api.github.com/users/poplav/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T19:07:12Z","updated_at":"2016-03-11T19:07:12Z","body":"Ah, true.  You would have each kernel instance/notebook spawned share that workspace file.  A regular user would definitely get confused when variables bleed between notebooks.  \r\nThe above idea though may be useful if you define your \"global\" workspace comprising of multiple notebooks in some enclosed/dockerized environment.  This would be an advanced case where they would really have to understand the implications.  \r\nI don't think the kernel has the concept of a notebook id/info, so that route wouldn't work.  You would need some way of querying the client.  \r\nAlso, I imagine complications would arise if you wanted to save/load say SparkR variables."}}