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

Updating jupyter install with python3 #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

josueneo
Copy link

While working for Singularity 101 course, I came across these examples and found out the versions are very old, this is an update.

I do not understand why using conda if a pip install is enough to install it, maybe I am missing something. However this is an urgent update since the previous jupyter install was using ubuntu 16 and python 2.7.

Copy link
Member

@dtrudg dtrudg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please try and keep to a conda install if you can.

The reason to use conda here is that the jupyter example is just a starting point. Users will then want to add other python packages they need to perform their analysis inside jupyter.

It is not easy, or sometimes even possible, to install up to date ML, bioinformatics, data science python packages with a distribution's pip. A lot of ML / bioinformatics / data science stuff depends on some lower level C libraries or similar. Conda supplies these non-python dependencies easily, and is probably the most common tool used by researchers and data scientists for this purpose.

@dtrudg
Copy link
Member

dtrudg commented Apr 28, 2023

Also, as a general rule, when creating containers using python.... either...

  • Use the distributions own python packages, installing them with the package manage. E.g. apt install jupyter.

-or-

  • Use conda

-or-

  • Use pip inside a virtual environment, e.g. via venv

When you use pip as root, you can end up installing packages in system locations that can conflict or update over distribution python- packages. Thos distribution python packages may be dependencies of the distros own system admin tools etc. This can cause confusing issues for users who try to take the example as a starting point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants