Issue
I would like to replace each user's custom.js
file with a global version. The only way I can figure out how to do this currently is to overwrite ~/.ipython/profile_default/static/custom/custom.js
after a user runs their first ipython notebook and their .ipython directory gets instantiated.
There must be a better way, either by providing some global version of custom.js
or by replacing the default custom.js
file during installation. In theory, one could also create symbolic links to a global custom.js
but this didn't work for me for some reason.
I see that there is a file /srv/notebook/notebook/static/custom/custom.js
on my system - but modifying it doesn't alter the custom.js
that gets installed for each user.
Any suggestions?
Solution
I'm running jupyterhub with dockerspawner, and have just found a solution here.
To make the custom.js
file adopted by each user, you can derivate the jupyter/base-notebook image by adding it to each user's custom directory:
ADD ./custom.js /home/$NB_USER/.jupyter/custom/custom.js
Note this path is the path defined in the jupyter notebook doc.
Hope this helps anyone having the same problem.
Answered By - Erqing Li
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.