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

Python package installation #66

Open
BabakEbrahimi opened this issue Jul 2, 2024 · 2 comments
Open

Python package installation #66

BabakEbrahimi opened this issue Jul 2, 2024 · 2 comments
Assignees
Labels
good first issue Good for newcomers Jupyter Issues related to Jupyter Notebooks

Comments

@BabakEbrahimi
Copy link

Hi, I would like to know the procedure for installing certain Python packages on the EOX server when they are not present in the existing kernel. Specifically, I need to understand whether the installation must be performed by the EOX host, or if guests have the permissions to do this themselves. Currently, I am using the following script to install missing packages via pip:
import sys
!{sys.executable} -m pip install {the name of intended Python package}

@BabakEbrahimi BabakEbrahimi added good first issue Good for newcomers Jupyter Issues related to Jupyter Notebooks labels Jul 2, 2024
@eox-cs1
Copy link

eox-cs1 commented Jul 2, 2024

As you are already installing packages, you are answering a part of the question already yourself.

Summing it up - you may install packages:

  • directly yourself, in your workspace only available to your user
  • EOX creates a new kernel using the conda store (you provide us with the necessary information)
  • yourself, by creating a new kernel using the conda store which makes the kernel available to the whole team and headless execution (user needs to be enabled by EOX)

In any case it is highly recommended:

  • to use conda store (over pip) to reduce problems with dependencies and sharing the kernel
  • use fixed versions of the packages to reduce problems with dependencies
  • when installing directly with pip, it is also important that this is done in user space i.e. it is not accessible for other users in the team and also not for headless

@jetschny
Copy link

jetschny commented Sep 4, 2024

@BabakEbrahimi is this resolved for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers Jupyter Issues related to Jupyter Notebooks
Projects
None yet
Development

No branches or pull requests

6 participants