{"action":"created","issue":{"url":"https://api.github.com/repos/DEAP/deap/issues/107","labels_url":"https://api.github.com/repos/DEAP/deap/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/DEAP/deap/issues/107/comments","events_url":"https://api.github.com/repos/DEAP/deap/issues/107/events","html_url":"https://github.com/DEAP/deap/issues/107","id":117279577,"number":107,"title":"Callback functions","user":{"login":"nikhilkalige","id":1267404,"avatar_url":"https://avatars.githubusercontent.com/u/1267404?v=3","gravatar_id":"","url":"https://api.github.com/users/nikhilkalige","html_url":"https://github.com/nikhilkalige","followers_url":"https://api.github.com/users/nikhilkalige/followers","following_url":"https://api.github.com/users/nikhilkalige/following{/other_user}","gists_url":"https://api.github.com/users/nikhilkalige/gists{/gist_id}","starred_url":"https://api.github.com/users/nikhilkalige/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikhilkalige/subscriptions","organizations_url":"https://api.github.com/users/nikhilkalige/orgs","repos_url":"https://api.github.com/users/nikhilkalige/repos","events_url":"https://api.github.com/users/nikhilkalige/events{/privacy}","received_events_url":"https://api.github.com/users/nikhilkalige/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-17T04:19:47Z","updated_at":"2015-11-17T04:33:10Z","closed_at":null,"body":"I am not sure if this is right way to do it.. But would it be possible to add a callback function to the algorithms. For example.. \r\n```python\r\ndef algorithms.eaGenerateUpdate(....., callback):\r\n     for ..........:\r\n           .....\r\n           callback()\r\n```\r\nThe reason behind this is that you could use it to plot graphs like at the end of each generation rather than waiting till the end of all generation.. Just a thought ."},"comment":{"url":"https://api.github.com/repos/DEAP/deap/issues/comments/157265333","html_url":"https://github.com/DEAP/deap/issues/107#issuecomment-157265333","issue_url":"https://api.github.com/repos/DEAP/deap/issues/107","id":157265333,"user":{"login":"fmder","id":961474,"avatar_url":"https://avatars.githubusercontent.com/u/961474?v=3","gravatar_id":"","url":"https://api.github.com/users/fmder","html_url":"https://github.com/fmder","followers_url":"https://api.github.com/users/fmder/followers","following_url":"https://api.github.com/users/fmder/following{/other_user}","gists_url":"https://api.github.com/users/fmder/gists{/gist_id}","starred_url":"https://api.github.com/users/fmder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmder/subscriptions","organizations_url":"https://api.github.com/users/fmder/orgs","repos_url":"https://api.github.com/users/fmder/repos","events_url":"https://api.github.com/users/fmder/events{/privacy}","received_events_url":"https://api.github.com/users/fmder/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T04:33:10Z","updated_at":"2015-11-17T04:33:10Z","body":"Thanks for asking. However, we don't believe such a feature is required.\nThanks again.\n\n2015-11-16 20:25 GMT-08:00 Nikhil Kalige <notifications@github.com>:\n\n> @fmder <https://github.com/fmder> I am using it that way now.. But I just\n> thought it would a nice feature to add.. Let me know if that would be\n> something you think would be a value addition to the lib. I could help with\n> that.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/DEAP/deap/issues/107#issuecomment-157264450>.\n>\n"}}