{"action":"created","issue":{"url":"https://api.github.com/repos/ioam/holoviews/issues/258","labels_url":"https://api.github.com/repos/ioam/holoviews/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/ioam/holoviews/issues/258/comments","events_url":"https://api.github.com/repos/ioam/holoviews/issues/258/events","html_url":"https://github.com/ioam/holoviews/issues/258","id":104490771,"number":258,"title":"Switch to %reload_ext in the tutorials","user":{"login":"jlstevens","id":890576,"avatar_url":"https://avatars.githubusercontent.com/u/890576?v=3","gravatar_id":"","url":"https://api.github.com/users/jlstevens","html_url":"https://github.com/jlstevens","followers_url":"https://api.github.com/users/jlstevens/followers","following_url":"https://api.github.com/users/jlstevens/following{/other_user}","gists_url":"https://api.github.com/users/jlstevens/gists{/gist_id}","starred_url":"https://api.github.com/users/jlstevens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlstevens/subscriptions","organizations_url":"https://api.github.com/users/jlstevens/orgs","repos_url":"https://api.github.com/users/jlstevens/repos","events_url":"https://api.github.com/users/jlstevens/events{/privacy}","received_events_url":"https://api.github.com/users/jlstevens/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ioam/holoviews/labels/docs","name":"docs","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"philippjfr","id":1550771,"avatar_url":"https://avatars.githubusercontent.com/u/1550771?v=3","gravatar_id":"","url":"https://api.github.com/users/philippjfr","html_url":"https://github.com/philippjfr","followers_url":"https://api.github.com/users/philippjfr/followers","following_url":"https://api.github.com/users/philippjfr/following{/other_user}","gists_url":"https://api.github.com/users/philippjfr/gists{/gist_id}","starred_url":"https://api.github.com/users/philippjfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippjfr/subscriptions","organizations_url":"https://api.github.com/users/philippjfr/orgs","repos_url":"https://api.github.com/users/philippjfr/repos","events_url":"https://api.github.com/users/philippjfr/events{/privacy}","received_events_url":"https://api.github.com/users/philippjfr/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ioam/holoviews/milestones/7","html_url":"https://github.com/ioam/holoviews/milestones/v1.4.0","labels_url":"https://api.github.com/repos/ioam/holoviews/milestones/7/labels","id":1300858,"number":7,"title":"v1.4.0","description":"The last release is now over two months old and we've added a wide range of features including merging of the bokeh backend. There's no fixed date set for this release yet but we'll start assigning issues that we think can be fixed in the near future.\r\n\r\nAdditionally both matplotlib v1.5 and bokeh 0.10 will be released in the near future, this release should  ensure compatibility with both.","creator":{"login":"philippjfr","id":1550771,"avatar_url":"https://avatars.githubusercontent.com/u/1550771?v=3","gravatar_id":"","url":"https://api.github.com/users/philippjfr","html_url":"https://github.com/philippjfr","followers_url":"https://api.github.com/users/philippjfr/followers","following_url":"https://api.github.com/users/philippjfr/following{/other_user}","gists_url":"https://api.github.com/users/philippjfr/gists{/gist_id}","starred_url":"https://api.github.com/users/philippjfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippjfr/subscriptions","organizations_url":"https://api.github.com/users/philippjfr/orgs","repos_url":"https://api.github.com/users/philippjfr/repos","events_url":"https://api.github.com/users/philippjfr/events{/privacy}","received_events_url":"https://api.github.com/users/philippjfr/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":46,"state":"open","created_at":"2015-09-11T11:12:20Z","updated_at":"2015-12-01T16:22:01Z","due_on":"2015-12-06T00:00:00Z","closed_at":null},"comments":13,"created_at":"2015-09-02T14:16:23Z","updated_at":"2015-12-01T17:44:21Z","closed_at":null,"body":"We should use ``%reload_ext holoviews.ipython`` instead of ``%load_ext holoviews.ipython`` as it behaves more predictably, reloading the extension without showing the message about the extension already being loaded.\r\n\r\nThis is particularly important for the next release as the HoloViews IPython extension now loads the necessary javascript and CSS into the cell - rerunning ``%load_ext`` removes this cell which then breaks the widgets in the notebook.\r\n\r\nOf course ``%load_ext`` does still work but you need to be careful not to reload the extension! We could tell the user to use ``%reload_ext`` (our current welcome message is 'HoloViewsJS successfully loaded.')  but that might be awkward. Finally, we might need to make sure notebook testing works with this approach and we will probably have to regenerate all our reference data."},"comment":{"url":"https://api.github.com/repos/ioam/holoviews/issues/comments/161044460","html_url":"https://github.com/ioam/holoviews/issues/258#issuecomment-161044460","issue_url":"https://api.github.com/repos/ioam/holoviews/issues/258","id":161044460,"user":{"login":"jbednar","id":1695496,"avatar_url":"https://avatars.githubusercontent.com/u/1695496?v=3","gravatar_id":"","url":"https://api.github.com/users/jbednar","html_url":"https://github.com/jbednar","followers_url":"https://api.github.com/users/jbednar/followers","following_url":"https://api.github.com/users/jbednar/following{/other_user}","gists_url":"https://api.github.com/users/jbednar/gists{/gist_id}","starred_url":"https://api.github.com/users/jbednar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbednar/subscriptions","organizations_url":"https://api.github.com/users/jbednar/orgs","repos_url":"https://api.github.com/users/jbednar/repos","events_url":"https://api.github.com/users/jbednar/events{/privacy}","received_events_url":"https://api.github.com/users/jbednar/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T17:44:21Z","updated_at":"2015-12-01T17:44:21Z","body":"That sounds good for the general case, but I'd want something very simple in addition so that a one-liner could be used in all our examples and tutorials, e.g.:\r\n\r\n```\r\nhv.load_extension(width=100)\r\n```\r\ninstead of ``%load_ext holoviews`` which would then inject the appropriate CSS for this one very commonly desired case (and others if we find extremely common idioms that we find ourselves putting into the css parameter)."}}