Back to projects
Nov 01, 2026
2 min read

astrolab-setup

One-line, no-root setup of a lab server account for astronomy, plus astroenvs, a terminal menu to launch Jupyter Lab, CARTA, DS9 and CASA

astrolab-setup gets an account on the astronomy lab server ready for work with a single command. Everything installs in your home folder, so no root access is needed.

curl -fsSL https://raw.githubusercontent.com/jj-sm/astrolab-setup/main/install.sh | bash

What you get

  • Python 3.11 and 3.13, installed with uv.
  • ~/.ipynb, a Python 3.13 environment registered as the Jupyter kernel “Python (ipynb 3.13)”, with ipynb-jjsm-tools preinstalled.
  • TinyTeX, so Matplotlib’s usetex and PDF export work out of the box.
  • tfold, which creates the out/, src/, data/ and notebooks/ folders for a new project.
  • astroenvs, the manager described below.

astroenvs

astroenvs (also available as ipynb) is a terminal menu to start, monitor and stop astronomy tools on the server:

  • Jupyter Lab and CARTA: start a server, list active instances, read logs.
  • DS9: open a window over X11.
  • CASA: start it in the current terminal.
  • Manage: stop one instance or all of them.

You move with the arrow keys, filter with / and confirm with Enter. To start Jupyter, choose Jupyter · Start server, accept the defaults and open the printed URL (from the university VPN).

Installation, configuration, troubleshooting and the changelog (current version 1.0.1) are at docs.jjsm.science/astrophysics/astrolab-setup.