Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

@<py-notebook version number> # change just the version of py-notebook loaded (note that older versions may not work)

/<py-notebook hash> # specify a spack hash for py-notebook (don't specify a hash that doesn't point to py-notebook)

...

  1. Click Interactive Apps
  2. Click OnDemand - Jupyter Notebook
  3. Then, enter the your SLURM account, the number of hours you want to keep the interactive session alive for, the number of cores you need, and your working directory
    `
  4. In the Spack command to pre-run box, enter any spack commands you want to run before the notebook app starts. Examples (note that everything after a '#' will be ignored):

    <blank or starts with #> # do nothing

    load <package 1> <package 2> # loading packages

    load <package 1> && spack load <package 2> # loading packages, method 2

    env activate <environment> # activating an environment (must contain code-server for this to work)

    @<code-server version number> # change just the version of code-server loaded (note that older versions may not work)

    /<code-server hash> # specify a spack hash for code-server (don't specify a hash that doesn't point to code-server)

    See also the Advanced Spack Pre-Run section

  5. Then, click Launch
  6. If you want, you can check output.log the same way as you can in Jupyter Notebook
  7. Click Connect to VS Code to connect
  8. See https://github.com/cdr/code-server/blob/main/docs/FAQ.md#installing-an-extension if you want to install an extension
  9. When you are done, click Delete

...