{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/notebook/issues/210","labels_url":"https://api.github.com/repos/jupyter/notebook/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/notebook/issues/210/comments","events_url":"https://api.github.com/repos/jupyter/notebook/issues/210/events","html_url":"https://github.com/jupyter/notebook/pull/210","id":95939511,"number":210,"title":"Add command-line interface to enable/disable nbextensions","user":{"login":"takluyver","id":327925,"avatar_url":"https://avatars.githubusercontent.com/u/327925?v=3","gravatar_id":"","url":"https://api.github.com/users/takluyver","html_url":"https://github.com/takluyver","followers_url":"https://api.github.com/users/takluyver/followers","following_url":"https://api.github.com/users/takluyver/following{/other_user}","gists_url":"https://api.github.com/users/takluyver/gists{/gist_id}","starred_url":"https://api.github.com/users/takluyver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takluyver/subscriptions","organizations_url":"https://api.github.com/users/takluyver/orgs","repos_url":"https://api.github.com/users/takluyver/repos","events_url":"https://api.github.com/users/takluyver/events{/privacy}","received_events_url":"https://api.github.com/users/takluyver/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-19T18:44:01Z","updated_at":"2015-07-20T17:08:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jupyter/notebook/pulls/210","html_url":"https://github.com/jupyter/notebook/pull/210","diff_url":"https://github.com/jupyter/notebook/pull/210.diff","patch_url":"https://github.com/jupyter/notebook/pull/210.patch"},"body":"i.e. to enable cite2c, you'd use `jupyter nbextension enable cite2c/main`.\r\n\r\nOpen questions:\r\n\r\n1. Should these commands accept multiple extension names in one call? `nbextension install` currently doesn't, so there's a symmetry argument, but it would be easy to handle more than one if necessary.\r\n\r\n2. Especially for disable, should it give an error if you try to disable something that's not enabled? Currently it will just pass silently. Enable could also fail if it's already enabled, but that seems less useful."},"comment":{"url":"https://api.github.com/repos/jupyter/notebook/issues/comments/122954779","html_url":"https://github.com/jupyter/notebook/pull/210#issuecomment-122954779","issue_url":"https://api.github.com/repos/jupyter/notebook/issues/210","id":122954779,"user":{"login":"jhamrick","id":83444,"avatar_url":"https://avatars.githubusercontent.com/u/83444?v=3","gravatar_id":"","url":"https://api.github.com/users/jhamrick","html_url":"https://github.com/jhamrick","followers_url":"https://api.github.com/users/jhamrick/followers","following_url":"https://api.github.com/users/jhamrick/following{/other_user}","gists_url":"https://api.github.com/users/jhamrick/gists{/gist_id}","starred_url":"https://api.github.com/users/jhamrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhamrick/subscriptions","organizations_url":"https://api.github.com/users/jhamrick/orgs","repos_url":"https://api.github.com/users/jhamrick/repos","events_url":"https://api.github.com/users/jhamrick/events{/privacy}","received_events_url":"https://api.github.com/users/jhamrick/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T17:08:47Z","updated_at":"2015-07-20T17:08:47Z","body":"Awesome, glad to see this is happening!\r\n\r\n> Should these commands accept multiple extension names in one call? nbextension install currently doesn't, so there's a symmetry argument, but it would be easy to handle more than one if necessary.\r\n\r\nI would also agree probably it should just take one argument.\r\n\r\n> Especially for disable, should it give an error if you try to disable something that's not enabled? Currently it will just pass silently. Enable could also fail if it's already enabled, but that seems less useful.\r\n\r\nI would say in either case it shouldn't give a true error, but perhaps print a warning so the user is aware of what's happening at least."}}