# Error for iconRegistry in Jupyterlab 2.x

**URL:** <https://discourse.jupyter.org/t/error-for-iconregistry-in-jupyterlab-2-x/9933>\
**Category:** JupyterLab\
**Tags:** community, jupyterlab, how-to, help-wanted\
**Created:** [July 12, 2021, 11:47am UTC](https://discourse.jupyter.org/t/error-for-iconregistry-in-jupyterlab-2-x/9933 "2021-07-12T11:47:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![coder](https://avatars.discourse-cdn.com/v4/letter/c/9de0a6/32.png) [@coder](https://discourse.jupyter.org/u/coder)\
**Post date:** [July 12, 2021, 11:47am UTC](https://discourse.jupyter.org/t/error-for-iconregistry-in-jupyterlab-2-x/9933/1 "2021-07-12T11:47:09Z")

</div>

Hi Guys,  
I am trying to convert a plugin from Jupyterlab 1.x to 2.x. Looking for equivalent library for iconRegistry in JupyterLab 2.x.

---

<div class="post-metadata">

**Author:** ![loichuder](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/loichuder/32/3826_2.png) [@loichuder](https://discourse.jupyter.org/u/loichuder)\
**Post date:** [July 12, 2021, 2:41pm UTC](https://discourse.jupyter.org/t/error-for-iconregistry-in-jupyterlab-2-x/9933/2 "2021-07-12T14:41:26Z")

</div>

You should find all the relevant info there: [JupyterLab 1.x to&nbsp;2.x Extension Migration Guide — JupyterLab 2.2.2 documentation](https://jupyterlab.readthedocs.io/en/2.2.x/developer/extension_migration.html#using-the-new-icon-system-and-labicon)

---

<div class="post-metadata">

**Author:** ![coder](https://avatars.discourse-cdn.com/v4/letter/c/9de0a6/32.png) [@coder](https://discourse.jupyter.org/u/coder)\
**Post date:** [July 15, 2021, 1:04pm UTC](https://discourse.jupyter.org/t/error-for-iconregistry-in-jupyterlab-2-x/9933/3 "2021-07-15T13:04:05Z")

</div>

Thanks @loichuder ,  
I have checked the document before and got the info on version change. Currently I am looking at: [ui-components | @jupyterlab](https://jupyterlab.readthedocs.io/en/stable/api/modules/ui_components.html) .  
where I am trying to find the methods, interface, etc. that I need to change in code. I guess LabIcon may replace iconRegistry but is there an example of LabIcon that I can refer to or any doc for olde version of ui-components where I can compare iconRegistry with to understand the code changes

---

<div class="post-metadata">

**Author:** ![loichuder](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/loichuder/32/3826_2.png) [@loichuder](https://discourse.jupyter.org/u/loichuder)\
**Post date:** [July 15, 2021, 1:22pm UTC](https://discourse.jupyter.org/t/error-for-iconregistry-in-jupyterlab-2-x/9933/4 "2021-07-15T13:22:40Z")

</div>

This particular part of the documentation which show the difference between 1.x and 2.x may be useful to you then: [jupyterlab/packages/ui-components at master · jupyterlab/jupyterlab · GitHub](https://github.com/jupyterlab/jupyterlab/tree/master/packages/ui-components#background)
