Hi,
I upgraded Jupterhub from 0.6 to 0.8.1. Everything looks good so far, except logo file feature.
I override the Jupyter logo file by mentioning the below config, but it's not working. I'm still getting the original Jupyter logo. It was working previously.
c.JupyterHub.logo_file = '/path/to/my_logo.png'
Please let me know how to fix the issue.
Thanks!
That same config continues to work in 0.8.1. Are you sure your config file is being loaded?
Hi @minrk, Thanks for looking into it.
Yes, my configuration was correctly loaded.
To confirm it, I modified app.py to see whether my logo file is getting loaded. And, I can see the log file showing as Loading logo file - /opt/jupyterhub/images/my_notebooks_logo.png.
Script Changes:
def init_handlers(self):
....
h.append((r'/logo', LogoHandler, {'path': self.logo_file}))
self.log.info("Loading logo file - %s", self.logo_file)
Log File:
[18:53]:[root@jupy004:jupyterhub]# cat /opt/jupyterhub/logs/jupyterhub.jupy004.log
[D 2017-12-16 18:52:56.937 JupyterHub application:555] Looking for /opt/jupyterhub/jupyterhub_config_dev in /opt/jupyterhub
[D 2017-12-16 18:52:56.938 JupyterHub application:577] Loaded config file: /opt/jupyterhub/jupyterhub_config_dev.py
[W 2017-12-16 18:52:56.939 JupyterHub app:489] JupyterHub.api_tokens is pending deprecation since JupyterHub version 0.8. Consider using JupyterHub.service_tokens. If you have a use case for services that identify as users, let us know: https://github.com/jupyterhub/jupyterhub/issues
[D 2017-12-16 18:52:56.939 JupyterHub app:1350] Writing PID 59757 to /opt/jupyterhub/pid/jupyterhub.jupy004.pid
[I 2017-12-16 18:52:56.942 JupyterHub app:836] Loading cookie_secret from /opt/jupyterhub/jupyterhub_cookie_secret
[D 2017-12-16 18:52:56.942 JupyterHub app:888] Connecting to db: sqlite:////opt/jupyterhub/db/jupyterhub.jupy004.sqlite
[D 2017-12-16 18:52:56.954 JupyterHub orm:504] database schema version found: 3ec6993fe20c
[I 2017-12-16 18:52:56.975 JupyterHub app:985] Not using whitelist. Any authenticated user will be allowed.
[D 2017-12-16 18:52:57.001 JupyterHub app:1087] Not duplicating token <APIToken('1a21...', user='prabhu')>
[D 2017-12-16 18:52:57.006 JupyterHub user:184] Creating <class 'MySpawner'> for root:
[D 2017-12-16 18:52:57.007 JupyterHub app:1213] Loading state for root from db
[D 2017-12-16 18:52:57.007 JupyterHub app:1238] root not running
[D 2017-12-16 18:52:57.010 JupyterHub user:184] Creating <class 'MySpawner'> for prabhu:
[D 2017-12-16 18:52:57.011 JupyterHub app:1213] Loading state for prabhu from db
[D 2017-12-16 18:52:57.012 JupyterHub app:1238] prabhu not running
[D 2017-12-16 18:52:57.013 JupyterHub app:1243] Loaded users:
root admin
prabhu admin
[I 2017-12-16 18:52:57.013 JupyterHub app:795] Loading logo file - /opt/jupyterhub/images/my_notebooks_logo.png
[I 2017-12-16 18:52:57.017 JupyterHub app:1530] Hub API listening on http://127.0.0.1:8081/hub/
But, when I hit https://jupyter.myhost.com:8443/hub/logo, I see only the jupyter logo and my logo is not getting loaded.
Can you please guide me how to fix the issue? Thanks in advance!
Thanks
Prabhu
Have you tried clearing your cache and/or loading in an incognito/private window?
It worked! I just cleared my browser cache and it displayed updated image. Awesome!
Thanks @minrk!
Most helpful comment
Have you tried clearing your cache and/or loading in an incognito/private window?