{"action":"created","issue":{"url":"https://api.github.com/repos/pydoit/doit/issues/192","repository_url":"https://api.github.com/repos/pydoit/doit","labels_url":"https://api.github.com/repos/pydoit/doit/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/pydoit/doit/issues/192/comments","events_url":"https://api.github.com/repos/pydoit/doit/issues/192/events","html_url":"https://github.com/pydoit/doit/pull/192","id":255085653,"number":192,"title":"Use load_ipython_extension to register doit magic functions","user":{"login":"tonyfast","id":4236275,"avatar_url":"https://avatars3.githubusercontent.com/u/4236275?v=4","gravatar_id":"","url":"https://api.github.com/users/tonyfast","html_url":"https://github.com/tonyfast","followers_url":"https://api.github.com/users/tonyfast/followers","following_url":"https://api.github.com/users/tonyfast/following{/other_user}","gists_url":"https://api.github.com/users/tonyfast/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyfast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyfast/subscriptions","organizations_url":"https://api.github.com/users/tonyfast/orgs","repos_url":"https://api.github.com/users/tonyfast/repos","events_url":"https://api.github.com/users/tonyfast/events{/privacy}","received_events_url":"https://api.github.com/users/tonyfast/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-04T16:33:39Z","updated_at":"2017-09-05T14:00:49Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/pydoit/doit/pulls/192","html_url":"https://github.com/pydoit/doit/pull/192","diff_url":"https://github.com/pydoit/doit/pull/192.diff","patch_url":"https://github.com/pydoit/doit/pull/192.patch"},"body":"With this update\r\n\r\n```ipython\r\n%load_ext doit.tools\r\n```\r\nreplaces\r\n\r\n```ipython\r\nfrom doit.tools import register_doit_as_IPython_magic\r\nregister_doit_as_IPython_magic()\r\n```\r\nThis works using [`load_ipython_extension`](http://ipython.readthedocs.io/en/stable/config/extensions/#writing-extensions) instead of `register_doit_as_IPython_magic` .\r\n\r\n[Here is an example notebook with this change.](http://nbviewer.jupyter.org/gist/tonyfast/46dcf89845ec319288c59aebd5fa75bc)"},"comment":{"url":"https://api.github.com/repos/pydoit/doit/issues/comments/327184338","html_url":"https://github.com/pydoit/doit/pull/192#issuecomment-327184338","issue_url":"https://api.github.com/repos/pydoit/doit/issues/192","id":327184338,"user":{"login":"tonyfast","id":4236275,"avatar_url":"https://avatars3.githubusercontent.com/u/4236275?v=4","gravatar_id":"","url":"https://api.github.com/users/tonyfast","html_url":"https://github.com/tonyfast","followers_url":"https://api.github.com/users/tonyfast/followers","following_url":"https://api.github.com/users/tonyfast/following{/other_user}","gists_url":"https://api.github.com/users/tonyfast/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyfast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyfast/subscriptions","organizations_url":"https://api.github.com/users/tonyfast/orgs","repos_url":"https://api.github.com/users/tonyfast/repos","events_url":"https://api.github.com/users/tonyfast/events{/privacy}","received_events_url":"https://api.github.com/users/tonyfast/received_events","type":"User","site_admin":false},"created_at":"2017-09-05T14:00:49Z","updated_at":"2017-09-05T14:00:49Z","author_association":"NONE","body":"* is this load_ipython_extension a new thing? is there any advantage in using the register style?\r\n\r\n   > `load_ipython_extension` has been a thing for as long as I have known; it provides extra functionality to the register style. [_This documentation highlights writing extensions._](http://ipython.readthedocs.io/en/stable/config/extensions/#writing-extensions)\r\n\r\n* [can we have %load_ext doit instead of %load_ext doit.tools](https://github.com/pydoit/doit/pull/192/commits/f0630bda2eb9cc4a9b75addb1518417bca1ac311)\r\n\r\n* [it would be nice to maintain compatibility for a while (add a deprecation warning), or just support both styles forever.](https://github.com/pydoit/doit/pull/192/commits/642eb9158a042cc9c9550c38c1e16e7f473acf79)\r\n"}}
{"actor":{"display_login":"tonyfast"}}