Python on sun

Remember to always Always ALWAYS snapshot the ZFS filesystem home/apps beneath hn-1:/srv/apps/local BEFORE ANY OPERATION that will touch Anaconda, in particular, updates. Anaconda is the DEFINITION of dependency hell, and WILL break everyone's workflow if you don't have a means of quick rollback at hand.

Old status

In slight abuse of the internal naming scheme of Anaconda, the new Python installation as of 2023-06 will be called Anaconda4.

Installation log, 2023-06-02 (Anaconda 2023.03, Python 3.10.13)

Upgrade shared Jupyter notebook to Anaconda4, 2023-11-10

Run module load Anaconda4 to equip your local shell with all the Python goodness.

Post-installation routine:

  • Be at the right place as someone with write permissions at /apps/local/software/Anaconda4/ (aka ssh softadm@hn-1)
  • Keep packages up to date with mamba update --all --channel conda-forge (Otherwise packages are only updated when they are dependencies of packages to be newly installed, i. e. you end up with a wild blend of updated and not updated packages.)
  • Install new package PKG: mamba install PKG (you can first search for it via mamba search PKG). Initialization of mamba is traditionally very slow (>1 min), but dependency resolution and package installation is reasonably fast.

Installations and updates interim/post-setup

When trying to install numba, mamba got trapped into dependency hell. Applying updates only made things worse.

Reinstall Anaconda, 2023.09 flavour (Python 3.11.5)

→ Not ready for deployment, the `Anaconda4` module will stay on 2023.03 for the time being.

https://sun.hi-ern.de/jupyter/hub/

  • Access to /home-* and /data-*, accessible from inside & outside
  • running on sun-26 aka ws.iek.kfa-juelich.de
  • uses Anaconda4 like above

https://sun.hi-ern.de/teach/

FIXME As of 2023-11, still using legacy Anaconda3 (including its weird Julia bindings) to not break user interface during the semester.

…are not officially supported. You're on your own.

  • compflu/backstage/python.txt
  • Last modified: 2024-02-16 12:21
  • by j.hielscher