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

Overview modules #553

Open
8 tasks done
milachae opened this issue Aug 21, 2023 · 6 comments
Open
8 tasks done

Overview modules #553

milachae opened this issue Aug 21, 2023 · 6 comments

Comments

@milachae
Copy link
Contributor

milachae commented Aug 21, 2023

Make an overview of all available modules on the different clusters.

@boegel
Copy link
Member

boegel commented Aug 22, 2023

Just so we have a record of this: we already have a JSON file that is automatically updated (along with the Lmod cache), which provides most information that is necessary to create a software overview, it can be obtained from /apps/gent/lmodcache/modulemap.json when logged in to the HPC-UGent login nodes.
Information missing there is the description + homepage that you get for individual modules via module show which would be nice to include in the software-specific overview of available versions.

@stdweird
Copy link
Member

https://github.com/hpcugent/vsc-modules/blob/master/lib/vsc/modules/cache.py is where the magic happens. i prefer to have a single metadata (incl homepage description) for each module (somehow guess what the latest is and use that?)

it's just to keep the size of the json low.

@stdweird
Copy link
Member

stdweird commented Aug 22, 2023

also for the record ;)

if you want more interactive access to this, you can look into https://osc.github.io/ood-documentation/latest/tutorials/tutorials-passenger-apps.html: you can then create a ruby/passenger app that has access to whatever you need. not sure how this overview would like in the docs, but it will be huge and thus slow if shipped in some static form.

also of interest might be https://github.com/hpcugent/vsc-accountpage/pull/1367 where we imagined to use the django build in form searches to do the magic. (it's not the same as this, but has the same problems wrt size and speed)

@boegel
Copy link
Member

boegel commented Aug 22, 2023

@stdweird Do you prefer only having a software overview available in the web portal as opposed to in the docs (which are public & hosted on GitHub)?
I mean outside of forms to create a desktop apps & such, so a more "static" table overview (but which is somewhat searchable, like the table-with-filter approach that @milachae has a proof-of-concept of), which eventually also includes extensions (like numpy which is included in the SciPy-bundle module, R packages, etc.).

Shipping all necessary data to produce an overview of installed modules isn't that huge, the page still loads quickly enough in practice (@milachae has been experimenting with that).

@stdweird
Copy link
Member

@boegel just pointing out some options. if it's fast enough and does what you want, go for it

@milachae
Copy link
Contributor Author

milachae commented Sep 1, 2023

Some ideas:

  1. add the whatis information to the page (watch out, ml show can take some time when executed from python)
  2. add a system to attach markdown files to the currently auto generated files

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

No branches or pull requests

3 participants