- Build the Apptainer .sif from the def file here
ml purge
ml Apptainer
apptainer build quarto-code-server.sif quarto-code-server.def
- Create an interactive session with Screen or something similar
- Allocate an interactive node. Using
sallocis preferred overgrabnodedue to the automatic assignment of atmpdir - Launch the apptainer with
sbatch launch_quarto_server.sh- Make sure
/var/tmpis writeable for unpacking vs-code server (needed for first time installations)
- Make sure
- Follow the in-terminal prompts to setup and connect to the vs-code server in your browser.
- Navigate to your project directory in the browser vs-code.
- When you first open the server in your project, give the app a minute to set up extensions. These extensions will allow jupyter environments to be auto-detected and loaded when opening terminals.
- Run
quarto checkin the vs-code terminal to ensure all langauges and extensions are properly loaded. - You can add extensions as needed (e.g. syntax help or linters). These should not affect the ability of other users to work with the code in a project.
- If you want to preview a quarto document, you will have to set the host to
0.0.0.0and manually navigate to the address of the host-node with the port given by thequarto previewoutput. The built in viewer doesn't seem to play well with the 'local host'
quarto preview mydoc.qmd --no-browser --host 0.0.0.0
Then you can go to <$(hostname)>.fhcrc.org:<port> to preview the live output