{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/notebook/issues/1731","repository_url":"https://api.github.com/repos/jupyter/notebook","labels_url":"https://api.github.com/repos/jupyter/notebook/issues/1731/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/notebook/issues/1731/comments","events_url":"https://api.github.com/repos/jupyter/notebook/issues/1731/events","html_url":"https://github.com/jupyter/notebook/issues/1731","id":174673704,"number":1731,"title":"Permission denied when enabling widgetsnbextension","user":{"login":"quang-ha","id":6018816,"avatar_url":"https://avatars.githubusercontent.com/u/6018816?v=3","gravatar_id":"","url":"https://api.github.com/users/quang-ha","html_url":"https://github.com/quang-ha","followers_url":"https://api.github.com/users/quang-ha/followers","following_url":"https://api.github.com/users/quang-ha/following{/other_user}","gists_url":"https://api.github.com/users/quang-ha/gists{/gist_id}","starred_url":"https://api.github.com/users/quang-ha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quang-ha/subscriptions","organizations_url":"https://api.github.com/users/quang-ha/orgs","repos_url":"https://api.github.com/users/quang-ha/repos","events_url":"https://api.github.com/users/quang-ha/events{/privacy}","received_events_url":"https://api.github.com/users/quang-ha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-02T03:36:19Z","updated_at":"2016-09-02T11:34:58Z","closed_at":null,"body":"Ubuntu 16.04, I have just done a fresh installation of `jupyter` using\r\n\r\n```\r\nsudo_ pip3 install jupyter\r\n```\r\nThen I run:\r\n```\r\njupyter nbextension enable --py --sys-prefix widgetsnbextension\r\n```\r\n\r\nBut I got this error:\r\n```\r\nEnabling notebook extension jupyter-js-widgets/extension...\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/jupyter-nbextension\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/local/lib/python3.5/dist-packages/jupyter_core/application.py\", line 267, in launch_instance\r\n    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)\r\n  File \"/usr/local/lib/python3.5/dist-packages/traitlets/config/application.py\", line 596, in launch_instance\r\n    app.start()\r\n  File \"/usr/local/lib/python3.5/dist-packages/notebook/nbextensions.py\", line 961, in start\r\n    super(NBExtensionApp, self).start()\r\n  File \"/usr/local/lib/python3.5/dist-packages/jupyter_core/application.py\", line 256, in start\r\n    self.subapp.start()\r\n  File \"/usr/local/lib/python3.5/dist-packages/notebook/nbextensions.py\", line 869, in start\r\n    self.toggle_nbextension_python(self.extra_args[0])\r\n  File \"/usr/local/lib/python3.5/dist-packages/notebook/nbextensions.py\", line 845, in toggle_nbextension_python\r\n    logger=self.log)\r\n  File \"/usr/local/lib/python3.5/dist-packages/notebook/nbextensions.py\", line 459, in enable_nbextension_python\r\n    logger=logger)\r\n  File \"/usr/local/lib/python3.5/dist-packages/notebook/nbextensions.py\", line 380, in _set_nbextension_state_python\r\n    for nbext in nbexts]\r\n  File \"/usr/local/lib/python3.5/dist-packages/notebook/nbextensions.py\", line 380, in <listcomp>\r\n    for nbext in nbexts]\r\n  File \"/usr/local/lib/python3.5/dist-packages/notebook/nbextensions.py\", line 345, in _set_nbextension_state\r\n    cm.update(section, {\"load_extensions\": {require: state}})\r\n  File \"/usr/local/lib/python3.5/dist-packages/traitlets/config/manager.py\", line 87, in update\r\n    self.set(section_name, data)\r\n  File \"/usr/local/lib/python3.5/dist-packages/traitlets/config/manager.py\", line 74, in set\r\n    f = io.open(filename, 'w', encoding='utf-8')\r\nPermissionError: [Errno 13] Permission denied: '/usr/etc/jupyter/nbconfig/notebook.json'\r\n```\r\nI didn't need `sudo` to enable the widgets before...\r\n"},"comment":{"url":"https://api.github.com/repos/jupyter/notebook/issues/comments/244351956","html_url":"https://github.com/jupyter/notebook/issues/1731#issuecomment-244351956","issue_url":"https://api.github.com/repos/jupyter/notebook/issues/1731","id":244351956,"user":{"login":"minrk","id":151929,"avatar_url":"https://avatars.githubusercontent.com/u/151929?v=3","gravatar_id":"","url":"https://api.github.com/users/minrk","html_url":"https://github.com/minrk","followers_url":"https://api.github.com/users/minrk/followers","following_url":"https://api.github.com/users/minrk/following{/other_user}","gists_url":"https://api.github.com/users/minrk/gists{/gist_id}","starred_url":"https://api.github.com/users/minrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minrk/subscriptions","organizations_url":"https://api.github.com/users/minrk/orgs","repos_url":"https://api.github.com/users/minrk/repos","events_url":"https://api.github.com/users/minrk/events{/privacy}","received_events_url":"https://api.github.com/users/minrk/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T11:34:58Z","updated_at":"2016-09-02T11:34:58Z","body":"Whether you need sudo depends on your permissions for the target directory. In this case, `sys-prefix` is `/usr` because presumably you are using the system Python. Given that, ou almost certainly **do not** want to use `--sys-prefix` in this case. Try removing the argument."}}
{"actor":{"display_login":"minrk"}}