-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
nbextension does not load from system-wide config #331
Comments
the system wide location should be |
When I ask for
Further, if I tried to put in all locations, and keep getting the same error. It also gives an error ('Failed to load extension: Array [ "nbextensions/livereveal" ]', see above). So it seems that it in some way finds the config, but cannot load the extension correctly when this is system config, but does correctly load it when specified in user config. |
and RISE loaded fine for me... |
@jorisvandenbossche what do you get from |
|
Sorry for the delay. I just re-read this, and the frontend-config (nbconfig, config.js) can only be loaded from the user location right now. It will not look in system-wide locations. |
Ah... I missed that... not it makes sense. Thanks for the info @minrk |
@minrk aha, that could explain :-) Is this planned to be possible in the future? Or, what is the best way to enable an extension for all your users/students? (without copying nbconfig files) Is there a way to do this programmatically (eg in jupyter_notebook_config.py file? or is that also only loaded from user config?) Further, the strange thing is that there is still some error in the web console about this extension, so in some way it does seem to do something with it ("Failed to load extension: Array [ "nbextensions/livereveal" ] Error: Script error for: nbextensions/livereveal", see initial post) |
@jorisvandenbossche yes, I think we do want to enable something like this, anyway. It's more complicated for the frontend config. |
You could do something like I suggested before...
So you "force" to look into that directory (or the one you choose...) for the nbconfig thing... |
@damianavila that's a good point. One of the reasons it's nicer that Jupyter separates config from runtime info is that it is possible to have read-only config (IPython does not work with a read-only profile). So if you wanted to exert control over the notebook config, you can specify this path and it will all work. |
How can you do this in a jupyterhub context? As you do not run the |
And something else, if you do |
@jorisvandenbossche you can specify environment variables and extra arguments to the server process via the Spawner.
No, this would be taking strict control over the notebook server configuration. There is no current way to provide overridable system-wide defaults for frontend-config (custom.js, nbconfig) at this time. |
@minrk is this a "no action" now? Close? |
@ellisonbg no, I think there's still a place for us to add support for an additional js file and/or frontend config that's system-wide that doesn't override user config if it exists. |
This should be solved by #879, I think... |
Indeed it is |
Situation:
I have the RISE (livereveal) extension installed in the system wide data dir:
/usr/local/share/jupyter/nbextensions/livereveal/
I have in my user config directory (
~/.jupyter/nbconfig/
) anotebook.json
file that specifies to load livereveal/main by default -> this works (the extension is activated, so the extension is installed correctly and works)If I put exactly the same
notebook.json
file in the system wide config location/usr/etc/jupyter/nbconfig/
, the extension does not load, but I see an error in the webconsole:Any idea what would be causing this? Or how I can debug it to provide more info?
(for info: I am running it on a JupyterHub (https://snake.ugent.be) hosted at our university)
The text was updated successfully, but these errors were encountered: