Skip to content
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

Does not work if jupyter lab started under different user #59

Closed
stefansimik opened this issue Oct 21, 2019 · 3 comments
Closed

Does not work if jupyter lab started under different user #59

stefansimik opened this issue Oct 21, 2019 · 3 comments

Comments

@stefansimik
Copy link

Hi,
problem is, that this plugin does not work, if jupyter lab is ran under another user
(another user = other user than original one, from which jupyterlab was installed)

If jupyterlab is ran under different user, then whole Jupyterlab works correctly, but this plugin fails to work and prints HTTP 404 errors for each formatting request.

Probable reason is that different user has different home-folder and probably this plugin
(or black module itself) is dependent on some files/configs in the user folder.

(Common motivation to start jupyterlab under different user is to have access to ODBC connections of that user (and authenticate to different DBs)

@ryantam626
Copy link
Owner

Ah, that's a use case I never thought of, I will try to have a look this weekend 👍

@ryantam626
Copy link
Owner

I think to make it work - you just need to install and enable the server extension (the pip installable one) with the user you are starting jupyterlab.

Check with jupyter serverextension list under both users and you should see the other user to be lacking the server extension.

@ryantam626
Copy link
Owner

I am fairly sure this should fix it, reopen if you are still seeing issues 👍

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

No branches or pull requests

2 participants