I am working in an environment with multiple servers and would like to share my .jupyter
configuration amongst the servers such that I don't have to keep them in sync manually. This can be achieved easily by setting the JUPYTER_CONFIG_DIR
environment variable to a shared location.
However, I would like to use different CSS style sheets for each server such that it is obvious which one I am working on. For example, on the first server, I would like to have a red background:
#notebook { background: red; }
and on the second, I would like to have a blue background.
#notebook { background: blue; }
I thought I might be able to achieve this by appending different paths to the extra_static_paths
depending on the hostname of the jupyter server. However, the HTML of the notebook looks for custom/custom.css
and the files indicated by extra_static_paths
are served from static/...
such that I cannot replace the custom css file in this manner.
Is there a better approach?