Skip to content

Update for Permission denied problem #100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aborruso
Copy link

@aborruso aborruso commented Oct 3, 2019

I have had this problem and I have solved in the way you can read here jupyter/notebook#1731 (comment)

I have had this problem and I have solved in the way you can read here jupyter/notebook#1731 (comment)
@pbugnion pbugnion mentioned this pull request Dec 31, 2019
9 tasks
@pbugnion
Copy link
Owner

pbugnion commented Jan 4, 2020

Thanks very much for submitting this.

I don't know that your suggestion really works in systems with multiple users, though. Assuming you are using system python:

  1. sudo pip install jupyterlab-sql installs and enables the frontend extension. Users will now be able to see the SQL icon in the JupyterLab launcher, though they won't be able to use it since there is no server.
  2. Running jupyter serverextension enable --py jupyterlab-sql enables the server for you, but not for anyone else on the system. For everyone else, they now have a jupyterlab version with an icon in the launcher that doesn't work. Really, I think the right call here is to use sudo jupyter serverextension enable --py --sys-prefix jupyterlab-sql. Min's comment that you refer to is a bit moot since you've used sudo pip... to install in the system site packages already.

I am somewhat reluctant to wade into how to install JupyterLab extensions when not in a virtual environment. It's a quagmire of cornercases. The only sane way to use Jupyter and Jupyter extensions (and Python in general) is through virtual environments.

Maybe the right fix is to add a line in the README to the effect that we recommend running jupyterlab-sql in the same virtual environment as Jupyter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants