jupyterlab-sql
jupyterlab-sql copied to clipboard
Update for Permission denied problem
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
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:
-
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. - 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 usesudo jupyter serverextension enable --py --sys-prefix jupyterlab-sql
. Min's comment that you refer to is a bit moot since you've usedsudo 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?