jupyterlab-desktop icon indicating copy to clipboard operation
jupyterlab-desktop copied to clipboard

Trying to install new extension but server part does not install

Open profitgrowinginnovator opened this issue 2 years ago • 8 comments

I am trying to bundle a new server extension with Jupyter Desktop 4.0. When I try to install the extension which works in Jupyter Lab in the desktop version I get an error message saying the "the server extension seems to be missing". I have been looking for documentation on how to use extensions in the Desktop 4.0 but I have not found a lot of information. My assumption is that you just use pip install extension inside a notebook. If this is not the case, what is the right process? My extension is called deailab.

Here are the logs: Screenshot 2023-08-25 at 13 24 57 Screenshot 2023-08-25 at 13 25 13

profitgrowinginnovator avatar Aug 25 '23 11:08 profitgrowinginnovator

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

welcome[bot] avatar Aug 25 '23 11:08 welcome[bot]

@mbektas Is there anything that @profitgrowinginnovator can do to help diagnose this?

JasonWeill avatar Sep 05 '23 16:09 JasonWeill

@profitgrowinginnovator I can reproduce the issue. The issue is not specific to Desktop app though. In the logs I see that there is a dependency missing (bacalhau_sdk). You can try first installing that on your system. Logs: deailab | error adding extension (enabled: True): The module 'deailab' could not be found (No module named 'bacalhau_sdk'). Are you sure the extension is installed?

mbektas avatar Sep 06 '23 16:09 mbektas

@profitgrowinginnovator After installing bacalhau_sdk, do you still see this error?

JasonWeill avatar Sep 12 '23 16:09 JasonWeill

Sorry did not see that you answered the message. My apologies. I created a new version of the extension [0.1.9] which can be easily installed via the Pypi extension manager. When I install this inside Jupyter Lab everything works but when I install it via the Desktop it does not. As you can see from the list all required libraries are installed, so that is not it. Screenshot 2023-09-20 at 17 25 08

profitgrowinginnovator avatar Sep 20 '23 16:09 profitgrowinginnovator

@mbektas I reopened this issue because @profitgrowinginnovator provided additional info above. Anything else to try?

JasonWeill avatar Oct 24 '23 16:10 JasonWeill

@profitgrowinginnovator I retried in a new Python environment. Pypi manager successfully installs the extension but I get the same error as you. and if I run import deailab in a code cell it throws an error ModuleNotFoundError: No module named 'bacalhau_sdk'.

mbektas avatar Dec 17 '23 19:12 mbektas

There are 5 dependencies that I put in the package.json but for some reason it ignores them. Any suggestions how to fix this?

profitgrowinginnovator avatar Dec 18 '23 09:12 profitgrowinginnovator