jupyterlab-sql icon indicating copy to clipboard operation
jupyterlab-sql copied to clipboard

Update for Permission denied problem

Open aborruso opened this issue 4 years ago • 1 comments

I have had this problem and I have solved in the way you can read here https://github.com/jupyter/notebook/issues/1731#issuecomment-244351956

aborruso avatar Oct 03 '19 08:10 aborruso

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?

pbugnion avatar Jan 04 '20 10:01 pbugnion