Where to put shared settings for jupyterlab extensions on hub

278 views
Skip to first unread message

Charles Forelle

unread,
Nov 1, 2017, 9:29:10 AM11/1/17
to jup...@googlegroups.com
Hello,

I have the following setup:
-JupyterHub using the default local spawner
-c.Spawner.cmd = ['jupyter', 'labhub'] to run JupyterLab when single-user servers are spawned (labhub extension installed).

What's the best way to get common jupyterlab extension settings loaded for each of the users' servers? (One use case: all users need to have the same clientId setting configured for the google-drive extension.)

Should I be using c.Spawner.pre_spawn_hook to run a shell script that writes the settings json to /home/{USERNAME}/.jupyter/lab/user-settings? Or is there another option? (I may be fundamentally misunderstanding how these settings work!)

JupyterLab 0.28.11
JupyterHub 0.8

Thanks! I'm grateful for any guidance.
-Charles

Steven Silvester

unread,
Nov 2, 2017, 4:58:39 AM11/2/17
to Project Jupyter
Hi Charles,

Yes, the approach you describe sounds correct for now.  We had been avoiding the auto-merge behavior that the classic notebook uses because the merge order is difficult to get right for every situation.  However, it sounds like we should at least allow you to provide a specific defaults folder.  I opened https://github.com/jupyterlab/jupyterlab/issues/3179.


Regards,

Steve

Charles Forelle

unread,
Nov 6, 2017, 10:57:56 AM11/6/17
to jup...@googlegroups.com
Thanks Steve. The pre_spawn script does the trick for now.

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/0f0b94e2-3933-4c25-954e-7a2578aea474%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages