Working in an environment with multiple servers, I want to streamline my .jupyter
configuration across all servers without the hassle of manual synchronization. Fortunately, this can be easily accomplished by setting the JUPYTER_CONFIG_DIR
environment variable to a shared location.
My goal is to have distinct CSS style sheets for each server to clearly differentiate between them. For instance, I envision having a red background on the first server:
#notebook { background: red; }
and a blue background on the second server.
#notebook { background: blue; }
I initially considered adding different paths to the extra_static_paths
based on the hostname of the Jupyter server. However, the notebook's HTML specifically searches for custom/custom.css
while files referenced by extra_static_paths
are from static/...
, making it impossible to replace the custom css file using this method.
Is there a more effective approach to achieve this customization?