High Performance Computing & AI
Practical notes on Python, JupyterHub, Kubernetes and AI for science — from the San Diego Supercomputer Center.
-
Deploy a web server with automatic HTTPS for static website and Django app on Jestream 2
As part of my work to support the Jetstream 2 Openstack deployment at Indiana University, I have developed a tutorial that explains how to create a Virtual Machine that deploys the Caddy web server.
-
Authenticate FastAPI endpoints with a GitHub organization
FastAPI is a framework that simplifies building APIs in Python. Authentication via Google, Github and many more is provided by FastAPI-SSO.
-
Jupyter Notebook frontmatter for Quarto to download source notebook
Quarto is one of the best platforms to create statically generated blogs with Markdown and Jupyter Notebooks. I switched zonca.dev to Quarto back in 2022.
-
2024-05-28-ai-code-assistant-jupyter-nersc
If you are used to Github Copilot on VS Code or on Google Colaboratory as I am, coding without an AI assistant is so slow!
-
Interactive 3D plot of a Planck map with Matplotlib
This is an update of my older tutorial Unfortunately I was not able to make Mayavi properly plot the data, rerunning the same code would give a map that looked like uniform noise.
-
2024-05-20-HEALPix-in-Megapixels
How many megapixels is a HEALPix map? python !pip install healpy
-
Load data from Globus in the browser and plot with pyscript
Globus supports a Javascript SDK which allows to authenticate against Globus Auth and then access all the Globus services, for example accessing protected data or setting up transfers between endpoints.
-
Ubuntu 22.04 minimal on Jetstream with GPU support
Just notes on how to create a Ubuntu 22.04 image with GPU support First create an image with Ubuntu Minimal from Horizon
-
News item on SDSC website about Advanced Simons Observatory and PySM
In collaboration with the SDSC Communications team I prepared a news item for the SDSC Website announcing my participation in the Advanced Simons Observatory project focusing on my work on supporting PySM.
-
Italian classes in San Diego
My wife Maura D'Andrea is Principal and Teacher of Italian school of San Diego. All instructors are mother-tongue Italian, they teach to kids and adults.
-
Setup a conda environment at NERSC
NERSC recommends to use the "Global Common" to store Conda environments, because it is optimized to store lots of small files. Consider that it is mounted read-only on computing nodes. The filesystem is organized by groups, so choose one of your groups:
-
2024-05-02-pysm-point-source-pixell
Testing the pixell simobjects functionality to create maps of point sources pre-smoothed with a gaussian beam. The purpose is to include this functionality in PySM to be able to generate on the fly maps of source starting from a catalog.
-
Flatcar Container Linux on Jetstream
Virtual Machine images provided by the Jetstream team are fully fledged and therefore quite large. Julien Chastang proposed the shift to a minimalist distribution to save disk space, resources and shorten deployment time, see the relevant issue discussion on the Jetstream Gitlab organization.
-
Automate sending polls via WhatsApp
Polls in WhatsApp are so convenient for the users, but so painful for group admins. Cannot modify them, cannot re-use or replicate them.
-
2-way synchronization of Overleaf and GitHub via a GitHub Action
Updated: 2025-02-20 In the past I wrote tutorials on how to handle Github and Overleaf, the latest for example is this. However the Github button in Overleaf is fragile, it often gets disconnected for unknown reasons, and it cannot be reconnected, it forces deletion of the Github repository. Moreover, it seems it is now a Premium feature. Finally, it needs to be triggered manually, and nobody remembers to do that.