# Installation of local developed extension via pip not recognized as JupyterLab extension

**URL:** <https://discourse.jupyter.org/t/installation-of-local-developed-extension-via-pip-not-recognized-as-jupyterlab-extension/26856>\
**Category:** JupyterLab\
**Tags:** help-wanted\
**Created:** [July 10, 2024, 3:29pm UTC](https://discourse.jupyter.org/t/installation-of-local-developed-extension-via-pip-not-recognized-as-jupyterlab-extension/26856 "2024-07-10T15:29:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ABrocker](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/abrocker/32/5712_2.png) [@ABrocker](https://discourse.jupyter.org/u/ABrocker)\
**Post date:** [July 10, 2024, 3:29pm UTC](https://discourse.jupyter.org/t/installation-of-local-developed-extension-via-pip-not-recognized-as-jupyterlab-extension/26856/1 "2024-07-10T15:29:59Z")

</div>

I am further my JupyterLab extension _jupyterlab-hide-cells_:

- GitLab Public Repo: [learntech-lufgi9 / public / JupyterLab Hide Cells · GitLab](https://git.rwth-aachen.de/learntech-lufgi9/public/jupyterlab-hide-cells) (main branch)
- PyPi: [jupyterlab-hide-cells · PyPI](https://pypi.org/project/jupyterlab-hide-cells/)

I am developing in a conda environment:

- JupyterLab 3.2.0
- Python 3.11.0
- node v.18.13.0
- Hatch, version 1.7.0
- twine version 4.0.2 (importlib-metadata: 5.2.0, keyring: 24.2.0, pkginfo: 1.10.0, requests: 2.28.2, requests-toolbelt: 1.0.0, urllib3: 1.26.14)

So I followed the instruction in [RELEASE.md](https://git.rwth-aachen.de/learntech-lufgi9/public/jupyterlab-hide-cells/-/blob/main/RELEASE.md?ref_type=heads):

```auto
hatch version 3.0.1
jlpm clean:all
python -m build
pip install dist/jupyterlab_hide_cells-3.0.1-py3-none-any.whl

```

Installation was first successfull, but it was not installed as a JupyterLab Extension (not listed in `jupyter labextension list`). I also started JupyterLab, but the features are not existing.

Similar problem exist when installing extension locally directly via `pip install -e "."`.

Installing the extension locally via:

```auto
jlpm
jlpm build
jupyter labextension install .

```

on the other hand works.

9 months before I was able to publish the package via pip and install it also via pip (see PyP: [jupyterlab-hide-cells · PyPI](https://pypi.org/project/jupyterlab-hide-cells/)).

Does anyone has an idea what I did wrong?

---

<div class="post-metadata">

**Author:** ![ABrocker](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/abrocker/32/5712_2.png) [@ABrocker](https://discourse.jupyter.org/u/ABrocker)\
**Post date:** [July 11, 2024, 10:24am UTC](https://discourse.jupyter.org/t/installation-of-local-developed-extension-via-pip-not-recognized-as-jupyterlab-extension/26856/2 "2024-07-11T10:24:33Z")

</div>

An annotation: I compared the new and the old tar.gz and I saw that in the new one the **init**.py is missing

---

<div class="post-metadata">

**Author:** ![batearedcollie](https://avatars.discourse-cdn.com/v4/letter/b/9fc29f/32.png) [@batearedcollie](https://discourse.jupyter.org/u/batearedcollie)\
**Post date:** [January 18, 2025, 9:39am UTC](https://discourse.jupyter.org/t/installation-of-local-developed-extension-via-pip-not-recognized-as-jupyterlab-extension/26856/3 "2025-01-18T09:39:51Z")

</div>

Just in case anyone else finds this. I was having this same issue with an extension built into a Docker image. After alot of searching it turned out that the `myextension/ __init__.py` was being excluded by the `.dockerignore` file.
