Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Pip Local Editable Packages not Manifested in JupyterLab #2926

Open
shikanchen opened this issue Jan 28, 2025 · 0 comments
Open

[BUG] - Pip Local Editable Packages not Manifested in JupyterLab #2926

shikanchen opened this issue Jan 28, 2025 · 0 comments
Labels
needs: triage 🚦 Someone needs to have a look at this issue and triage type: bug 🐛 Something isn't working

Comments

@shikanchen
Copy link

Describe the bug

I followed the steps outlined in the documentation to install local editable packages via pip in a Nebari conda environment. The package works as expected when used in the terminal. However, they do not seem to be accessible from the JupyterLab interface after using the approach specified in the documentation's section "Usage from Jupyter".
And I get module not found error.

Here is the link to the specific documentation: https://www.nebari.dev/docs/how-tos/develop-local-packages/

Expected behavior

The installed packages should be available for use in JupyterLab notebooks

OS and architecture in which you are running Nebari

OS: macOS Ventura 13.5.2, and Architecture: ARM64 (Apple Silicon)

How to Reproduce the problem?

I created a new user of the role group Analyst, and created a non-shared environment in conda store.
Open a terminal in JupyterLab or VS Code
Activate the environment: conda activate
Create a virtual environment (venv) in a folder of your choice: python -m venv .venv_myenv
Activate the venv: source .venv_myenv/bin/activate
Install your package via pip: pip install -e

And open a notebook using the kernel of , append the package installation folder into system path as instructed in the step of the documentation

import sys
sys.path.append('/home/<email of the user>/.venv_myenv/lib/<python version the environment uses>/site-packages/')

Command output

I'm using minipy cloned from their github page to test pip install -e in Nebari environment

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[19], line 1
----> 1 import minipy

ModuleNotFoundError: No module named 'minipy'

Versions and dependencies used.

  • Conda 24.5.0
  • Kubernetes
    • Client Version: v1.30.5
    • Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
    • Server Version: v1.29.2
  • Nebari 2024.12.1

Compute environment

None

Integrations

No response

Anything else?

No response

@shikanchen shikanchen added needs: triage 🚦 Someone needs to have a look at this issue and triage type: bug 🐛 Something isn't working labels Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: triage 🚦 Someone needs to have a look at this issue and triage type: bug 🐛 Something isn't working
Projects
Status: New 🚦
Development

No branches or pull requests

1 participant