# Changing the logos of Zero to JupyterHub k8s

**URL:** <https://discourse.jupyter.org/t/changing-the-logos-of-zero-to-jupyterhub-k8s/5575>\
**Category:** Zero to JupyterHub on Kubernetes\
**Tags:** how-to, help-wanted\
**Created:** [August 12, 2020, 9:40am UTC](https://discourse.jupyter.org/t/changing-the-logos-of-zero-to-jupyterhub-k8s/5575 "2020-08-12T09:40:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdelrahmanai](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@abdelrahmanai](https://discourse.jupyter.org/u/abdelrahmanai)\
**Post date:** [August 12, 2020, 9:40am UTC](https://discourse.jupyter.org/t/changing-the-logos-of-zero-to-jupyterhub-k8s/5575/1 "2020-08-12T09:40:03Z")

</div>

Is there any documentation on customizing / changing the jupyter logos?

Thanks  
Abd

---

<div class="post-metadata">

**Author:** ![manics](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/manics/32/85_2.png) [@manics](https://discourse.jupyter.org/u/manics)\
**Post date:** [August 13, 2020, 6:31pm UTC](https://discourse.jupyter.org/t/changing-the-logos-of-zero-to-jupyterhub-k8s/5575/2 "2020-08-13T18:31:52Z")

</div>

There’s a config option `c.JupyterHub.logo_file`:  
[https://jupyterhub.readthedocs.io/en/stable/api/app.html#jupyterhub.app.JupyterHub.logo\_file](https://jupyterhub.readthedocs.io/en/stable/api/app.html#jupyterhub.app.JupyterHub.logo_file)

(note there may be a minor CSS bug which means you need to scroll up to see that property, otherwise it’s hidden behind the page menu header).

---

<div class="post-metadata">

**Author:** ![abdelrahmanai](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@abdelrahmanai](https://discourse.jupyter.org/u/abdelrahmanai)\
**Post date:** [August 18, 2020, 11:45am UTC](https://discourse.jupyter.org/t/changing-the-logos-of-zero-to-jupyterhub-k8s/5575/3 "2020-08-18T11:45:58Z")

</div>

Thank you for the response.  
Just for me to understand, currently I am using helm to install jupyterhub. How would I put the image on the image/pod?  
Edit: or can I use a hyperlink to direct me to the logo file?

---

<div class="post-metadata">

**Author:** ![sluna](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/sluna/32/2892_2.png) [@sluna](https://discourse.jupyter.org/u/sluna)\
**Post date:** [October 16, 2020, 10:09am UTC](https://discourse.jupyter.org/t/changing-the-logos-of-zero-to-jupyterhub-k8s/5575/4 "2020-10-16T10:09:46Z")

</div>

Hi @manics

I am trying to achieve the same. Would this be a correct config to use in config.yml?

hub:  
extraConfig:  
myConfig: |  
c.JupyterHub.logo\_file: “URL”

---

<div class="post-metadata">

**Author:** ![manics](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/manics/32/85_2.png) [@manics](https://discourse.jupyter.org/u/manics)\
**Post date:** [October 18, 2020, 5:32pm UTC](https://discourse.jupyter.org/t/changing-the-logos-of-zero-to-jupyterhub-k8s/5575/5 "2020-10-18T17:32:39Z")

</div>

Looking at the source code:

> <https://github.com/jupyterhub/jupyterhub/blob/998c18df42d01097859b215c278b0da2902b088e/jupyterhub/app.py#L639-L648>

  

> <https://github.com/jupyterhub/jupyterhub/blob/998c18df42d01097859b215c278b0da2902b088e/jupyterhub/app.py#L1367>

So only a local file is supported.

---

<div class="post-metadata">

**Author:** ![sluna](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/sluna/32/2892_2.png) [@sluna](https://discourse.jupyter.org/u/sluna)\
**Post date:** [October 19, 2020, 10:07am UTC](https://discourse.jupyter.org/t/changing-the-logos-of-zero-to-jupyterhub-k8s/5575/6 "2020-10-19T10:07:27Z")

</div>

Thanks @manics

I tried it without success.

Are there any restrictions w.r.t file format, permissions or path?

I am using a png file located in the same folder where I have the config.yml.

Many thanks,  
Sebastian

---

<div class="post-metadata">

**Author:** ![manics](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/manics/32/85_2.png) [@manics](https://discourse.jupyter.org/u/manics)\
**Post date:** [October 21, 2020, 8:42am UTC](https://discourse.jupyter.org/t/changing-the-logos-of-zero-to-jupyterhub-k8s/5575/7 "2020-10-21T08:42:26Z")

</div>

I’m not sure. Have you tried enabling debug logging?

> <https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/2f7135cfeed631553eb3452f6b3f47f27e47c9f9/jupyterhub/values.yaml#L495-L496>

---

<div class="post-metadata">

**Author:** ![sluna](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/sluna/32/2892_2.png) [@sluna](https://discourse.jupyter.org/u/sluna)\
**Post date:** [October 21, 2020, 11:21am UTC](https://discourse.jupyter.org/t/changing-the-logos-of-zero-to-jupyterhub-k8s/5575/8 "2020-10-21T11:21:22Z")

</div>

Thanks @manics

Enabling debug didn’t show useful information in this regard.

On the other hand, I found the following relevant issue:

> <https://github.com/jupyterhub/zero-to-jupyterhub-k8s/issues/691>
>
> @sanzaypant and me wants to customize the logo used by JupyterHub within the z2jh deployment. Anyone with a recommendation on a...

Until a better solution is found the following worked for me:  
hub:  
extraConfig:  
logoConfig: |  
import urllib.request  
urllib.request.urlretrieve(“URL”, “mylogo.png”)  
c.JupyterHub.logo\_file = ‘/srv/jupyterhub/mylogo.png’

Many thanks for your help!
