{"action":"created","issue":{"url":"https://api.github.com/repos/jupyter/jupyterhub/issues/470","repository_url":"https://api.github.com/repos/jupyter/jupyterhub","labels_url":"https://api.github.com/repos/jupyter/jupyterhub/issues/470/labels{/name}","comments_url":"https://api.github.com/repos/jupyter/jupyterhub/issues/470/comments","events_url":"https://api.github.com/repos/jupyter/jupyterhub/issues/470/events","html_url":"https://github.com/jupyter/jupyterhub/issues/470","id":139338989,"number":470,"title":"Can Jupyterhub access Anaconda packages?","user":{"login":"cenveoanalyst","id":17322855,"avatar_url":"https://avatars.githubusercontent.com/u/17322855?v=3","gravatar_id":"","url":"https://api.github.com/users/cenveoanalyst","html_url":"https://github.com/cenveoanalyst","followers_url":"https://api.github.com/users/cenveoanalyst/followers","following_url":"https://api.github.com/users/cenveoanalyst/following{/other_user}","gists_url":"https://api.github.com/users/cenveoanalyst/gists{/gist_id}","starred_url":"https://api.github.com/users/cenveoanalyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cenveoanalyst/subscriptions","organizations_url":"https://api.github.com/users/cenveoanalyst/orgs","repos_url":"https://api.github.com/users/cenveoanalyst/repos","events_url":"https://api.github.com/users/cenveoanalyst/events{/privacy}","received_events_url":"https://api.github.com/users/cenveoanalyst/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-08T17:20:46Z","updated_at":"2016-03-09T14:28:04Z","closed_at":null,"body":"I installed python3 using Anaconda, but Jupyterhub using pip3 after installing conda per the getting started document. I notice I can import packages installed with Anaconda in the regular python interpreter but I can't import them into a notebook spawned with Jupyterhub. I can also import the package when I access the same notebook run as a local notebook server. I can only access packages installed with pip (pip3 in my Ubuntu VM) in a jupyterhub spawned notebook. Is there anyway I can access Conda packages with a Jupyterhub notebook? Or do all imports need to reference the package installed with pip?"},"comment":{"url":"https://api.github.com/repos/jupyter/jupyterhub/issues/comments/194318966","html_url":"https://github.com/jupyter/jupyterhub/issues/470#issuecomment-194318966","issue_url":"https://api.github.com/repos/jupyter/jupyterhub/issues/470","id":194318966,"user":{"login":"cenveoanalyst","id":17322855,"avatar_url":"https://avatars.githubusercontent.com/u/17322855?v=3","gravatar_id":"","url":"https://api.github.com/users/cenveoanalyst","html_url":"https://github.com/cenveoanalyst","followers_url":"https://api.github.com/users/cenveoanalyst/followers","following_url":"https://api.github.com/users/cenveoanalyst/following{/other_user}","gists_url":"https://api.github.com/users/cenveoanalyst/gists{/gist_id}","starred_url":"https://api.github.com/users/cenveoanalyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cenveoanalyst/subscriptions","organizations_url":"https://api.github.com/users/cenveoanalyst/orgs","repos_url":"https://api.github.com/users/cenveoanalyst/repos","events_url":"https://api.github.com/users/cenveoanalyst/events{/privacy}","received_events_url":"https://api.github.com/users/cenveoanalyst/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T14:28:04Z","updated_at":"2016-03-09T14:28:04Z","body":"Min RK,\n\nThanks for the help! I ended up downloading the packages I needed separately and they work; but it appears when I installed Anaconda I didn’t use it to install Jupyterhub so it missed the packages. I’ll have to try registering  the Anaconda kernel with Jupyterhub and see what happens.\n\nFrom: Min RK [mailto:notifications@github.com]\nSent: Wednesday, March 09, 2016 2:39 AM\nTo: jupyter/jupyterhub\nCc: Brown, Ryan\nSubject: Re: [jupyterhub] Can Jupyterhub access Anaconda packages? (#470)\n\n\nJupyterHub does not affect how packages are imported or what is available. If you are seeing results different from what you expect, this probably means that you have installed the anaconda packages and JupyterHub with different Pythons. You can check this by looking at head $(which pip3). If that doesn't point to your Anaconda Python, then JupyterHub is installed with a different Python.\n\nYour choices are either to ensure JupyterHub is installed with the same Python (requires that your conda env is Python 3):\n\n/path/to/conda/bin/python -m pip install jupyterhub\n\nOr to register the anaconda kernel explicitly with Jupyter:\n\n# install JupyterHub\n\npip3 install jupyterhub\n\n# install conda packages\n\nconda install anaconda\n\n# register conda IPython kernel with Jupyter:\n\n/path/to/conda/bin/python -m ipykernel install\n\n—\nReply to this email directly or view it on GitHub<https://github.com/jupyter/jupyterhub/issues/470#issuecomment-194184082>.\n\n****\n\n****\n"}}