{"action":"created","issue":{"url":"https://api.github.com/repos/nengo/nengo/issues/693","labels_url":"https://api.github.com/repos/nengo/nengo/issues/693/labels{/name}","comments_url":"https://api.github.com/repos/nengo/nengo/issues/693/comments","events_url":"https://api.github.com/repos/nengo/nengo/issues/693/events","html_url":"https://github.com/nengo/nengo/pull/693","id":66023693,"number":693,"title":"Change progress bar instantiation for IPython 3 compatibility.","user":{"login":"jgosmann","id":850157,"avatar_url":"https://avatars.githubusercontent.com/u/850157?v=3","gravatar_id":"","url":"https://api.github.com/users/jgosmann","html_url":"https://github.com/jgosmann","followers_url":"https://api.github.com/users/jgosmann/followers","following_url":"https://api.github.com/users/jgosmann/following{/other_user}","gists_url":"https://api.github.com/users/jgosmann/gists{/gist_id}","starred_url":"https://api.github.com/users/jgosmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgosmann/subscriptions","organizations_url":"https://api.github.com/users/jgosmann/orgs","repos_url":"https://api.github.com/users/jgosmann/repos","events_url":"https://api.github.com/users/jgosmann/events{/privacy}","received_events_url":"https://api.github.com/users/jgosmann/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nengo/nengo/labels/needs%20review","name":"needs review","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/nengo/nengo/milestones/6","html_url":"https://github.com/nengo/nengo/milestones/2.1.0%20release","labels_url":"https://api.github.com/repos/nengo/nengo/milestones/6/labels","id":747893,"number":6,"title":"2.1.0 release","description":"For changes that will affect model code.","creator":{"login":"tbekolay","id":203709,"avatar_url":"https://avatars.githubusercontent.com/u/203709?v=3","gravatar_id":"","url":"https://api.github.com/users/tbekolay","html_url":"https://github.com/tbekolay","followers_url":"https://api.github.com/users/tbekolay/followers","following_url":"https://api.github.com/users/tbekolay/following{/other_user}","gists_url":"https://api.github.com/users/tbekolay/gists{/gist_id}","starred_url":"https://api.github.com/users/tbekolay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbekolay/subscriptions","organizations_url":"https://api.github.com/users/tbekolay/orgs","repos_url":"https://api.github.com/users/tbekolay/repos","events_url":"https://api.github.com/users/tbekolay/events{/privacy}","received_events_url":"https://api.github.com/users/tbekolay/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":38,"state":"open","created_at":"2014-08-08T17:42:35Z","updated_at":"2015-08-06T21:42:58Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2015-04-02T22:28:08Z","updated_at":"2015-08-06T22:49:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nengo/nengo/pulls/693","html_url":"https://github.com/nengo/nengo/pull/693","diff_url":"https://github.com/nengo/nengo/pull/693.diff","patch_url":"https://github.com/nengo/nengo/pull/693.patch"},"body":"* Add RC option to set progress bar.\r\n* Remove IPython notebook detection (cannot be done with IPython\r\n  notebook >3 aka Jupyter)\r\n* Add `activate_ipynb_features()` function.\r\n\r\nTodo:\r\n* [x] Document new RC options\r\n* [ ] Document `activate_ipynb_features()`\r\n* [ ] Add `activate_ipynb_features()` to examples?\r\n* [ ] Document how to run `activate_ipynb_features()` automatically when a kernel in a notebook is started.\r\n\r\nWe are still deploying the progress bar front-end code in IPython notebook in the non-recommended way:\r\n\r\n> If you distribute your custom widget, you may be using display and Javascript to publish the widget’s Javascript to the front-end. That is no longer the recommended way of distributing widget Javascript. Instead have the user install the Javascript to his/her nbextension directory or their profile’s static directory.\r\n\r\nThis is for backwards compatibility (the recommended way does not work prior to IPython 3). It would be possible to deploy the code in the recommended way for IPython 3 only and in the old way otherwise. But that might require some code duplication. Thus, I would vote to keep it how it is at the moment and switch over at a later point when we drop support for older IPython versions. The downsides of the old way are:\r\n* Front-end code might not be loaded in time (and progress bar shows not up)\r\n* Progress bar might break when the page is reloaded."},"comment":{"url":"https://api.github.com/repos/nengo/nengo/issues/comments/128533464","html_url":"https://github.com/nengo/nengo/pull/693#issuecomment-128533464","issue_url":"https://api.github.com/repos/nengo/nengo/issues/693","id":128533464,"user":{"login":"tbekolay","id":203709,"avatar_url":"https://avatars.githubusercontent.com/u/203709?v=3","gravatar_id":"","url":"https://api.github.com/users/tbekolay","html_url":"https://github.com/tbekolay","followers_url":"https://api.github.com/users/tbekolay/followers","following_url":"https://api.github.com/users/tbekolay/following{/other_user}","gists_url":"https://api.github.com/users/tbekolay/gists{/gist_id}","starred_url":"https://api.github.com/users/tbekolay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbekolay/subscriptions","organizations_url":"https://api.github.com/users/tbekolay/orgs","repos_url":"https://api.github.com/users/tbekolay/repos","events_url":"https://api.github.com/users/tbekolay/events{/privacy}","received_events_url":"https://api.github.com/users/tbekolay/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T22:49:54Z","updated_at":"2015-08-06T22:49:54Z","body":"I'd prefer adding `importlib` for now; we might as well keep Py 2.6 for 2.1 since it's still working. Break compatibility in 2.2."}}