slurm-code 0.1.28__tar.gz → 0.1.32__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. {slurm_code-0.1.28/src/slurm_code.egg-info → slurm_code-0.1.32}/PKG-INFO +1 -1
  2. {slurm_code-0.1.28 → slurm_code-0.1.32}/docs/_quarto.yml +34 -32
  3. {slurm_code-0.1.28 → slurm_code-0.1.32}/docs/pages/getting-started.md +4 -5
  4. {slurm_code-0.1.28 → slurm_code-0.1.32}/docs/pages/submit.md +3 -3
  5. {slurm_code-0.1.28 → slurm_code-0.1.32}/pixi.lock +12 -11
  6. {slurm_code-0.1.28 → slurm_code-0.1.32}/pyproject.toml +2 -1
  7. {slurm_code-0.1.28 → slurm_code-0.1.32}/src/slurm_code/core.py +12 -12
  8. {slurm_code-0.1.28 → slurm_code-0.1.32/src/slurm_code.egg-info}/PKG-INFO +1 -1
  9. {slurm_code-0.1.28 → slurm_code-0.1.32}/src/slurm_code.egg-info/SOURCES.txt +0 -7
  10. slurm_code-0.1.28/docs/api/_sidebar.yml +0 -12
  11. slurm_code-0.1.28/docs/api/_styles-quartodoc.css +0 -22
  12. slurm_code-0.1.28/docs/api/functionname.qmd +0 -35
  13. slurm_code-0.1.28/docs/api/index.qmd +0 -19
  14. slurm_code-0.1.28/docs/api/scriptname.qmd +0 -6
  15. slurm_code-0.1.28/docs/pages/example.ipynb +0 -5104
  16. slurm_code-0.1.28/docs/pages/overview.ipynb +0 -75
  17. {slurm_code-0.1.28 → slurm_code-0.1.32}/.devcontainer/Dockerfile +0 -0
  18. {slurm_code-0.1.28 → slurm_code-0.1.32}/.devcontainer/README.md +0 -0
  19. {slurm_code-0.1.28 → slurm_code-0.1.32}/.devcontainer/devcontainer.json +0 -0
  20. {slurm_code-0.1.28 → slurm_code-0.1.32}/.devcontainer/init-firewall.sh +0 -0
  21. {slurm_code-0.1.28 → slurm_code-0.1.32}/.devcontainer/mcp-setup/generate-config.sh +0 -0
  22. {slurm_code-0.1.28 → slurm_code-0.1.32}/.devcontainer/mcp-setup/install.sh +0 -0
  23. {slurm_code-0.1.28 → slurm_code-0.1.32}/.devcontainer/mcp-setup/pixi.toml +0 -0
  24. {slurm_code-0.1.28 → slurm_code-0.1.32}/.devcontainer/mcp-setup/servers.txt +0 -0
  25. {slurm_code-0.1.28 → slurm_code-0.1.32}/.devcontainer/mcp-setup/test-servers.sh +0 -0
  26. {slurm_code-0.1.28 → slurm_code-0.1.32}/.gitattributes +0 -0
  27. {slurm_code-0.1.28 → slurm_code-0.1.32}/.github/workflows/conda-release.yml +0 -0
  28. {slurm_code-0.1.28 → slurm_code-0.1.32}/.github/workflows/pypi-release.yml +0 -0
  29. {slurm_code-0.1.28 → slurm_code-0.1.32}/.github/workflows/quarto-publish.yml +0 -0
  30. {slurm_code-0.1.28 → slurm_code-0.1.32}/.gitignore +0 -0
  31. {slurm_code-0.1.28 → slurm_code-0.1.32}/.vscode/vscode.css +0 -0
  32. {slurm_code-0.1.28 → slurm_code-0.1.32}/CHANGELOG.md +0 -0
  33. {slurm_code-0.1.28 → slurm_code-0.1.32}/CLAUDE.md +0 -0
  34. {slurm_code-0.1.28 → slurm_code-0.1.32}/LICENSE +0 -0
  35. {slurm_code-0.1.28 → slurm_code-0.1.32}/README.md +0 -0
  36. {slurm_code-0.1.28 → slurm_code-0.1.32}/conda-build/README.md +0 -0
  37. {slurm_code-0.1.28 → slurm_code-0.1.32}/conda-build/build_env.yaml +0 -0
  38. {slurm_code-0.1.28 → slurm_code-0.1.32}/conda-build/meta.yaml +0 -0
  39. {slurm_code-0.1.28 → slurm_code-0.1.32}/docs/.gitignore +0 -0
  40. {slurm_code-0.1.28 → slurm_code-0.1.32}/docs/README.md +0 -0
  41. {slurm_code-0.1.28 → slurm_code-0.1.32}/docs/_extensions/machow/interlinks/.gitignore +0 -0
  42. {slurm_code-0.1.28 → slurm_code-0.1.32}/docs/_extensions/machow/interlinks/_extension.yml +0 -0
  43. {slurm_code-0.1.28 → slurm_code-0.1.32}/docs/_extensions/machow/interlinks/interlinks.lua +0 -0
  44. {slurm_code-0.1.28 → slurm_code-0.1.32}/docs/_inv/griffe_objects.txt +0 -0
  45. {slurm_code-0.1.28 → slurm_code-0.1.32}/docs/_inv/numpy_objects.txt +0 -0
  46. {slurm_code-0.1.28 → slurm_code-0.1.32}/docs/_inv/python_objects.txt +0 -0
  47. {slurm_code-0.1.28 → slurm_code-0.1.32}/docs/autodoc.mustache +0 -0
  48. {slurm_code-0.1.28 → slurm_code-0.1.32}/docs/custom.scss +0 -0
  49. {slurm_code-0.1.28 → slurm_code-0.1.32}/docs/objects.txt +0 -0
  50. {slurm_code-0.1.28 → slurm_code-0.1.32}/docs/pages/managing-jobs.md +0 -0
  51. {slurm_code-0.1.28 → slurm_code-0.1.32}/docs/pages/profiles.md +0 -0
  52. {slurm_code-0.1.28 → slurm_code-0.1.32}/docs/styles.css +0 -0
  53. {slurm_code-0.1.28 → slurm_code-0.1.32}/scripts/bump_changelog.py +0 -0
  54. {slurm_code-0.1.28 → slurm_code-0.1.32}/scripts/bump_version.py +0 -0
  55. {slurm_code-0.1.28 → slurm_code-0.1.32}/scripts/docs-build-render.sh +0 -0
  56. {slurm_code-0.1.28 → slurm_code-0.1.32}/scripts/docs-run-notebooks.sh +0 -0
  57. {slurm_code-0.1.28 → slurm_code-0.1.32}/scripts/git-commit.sh +0 -0
  58. {slurm_code-0.1.28 → slurm_code-0.1.32}/scripts/github-release.sh +0 -0
  59. {slurm_code-0.1.28 → slurm_code-0.1.32}/scripts/rename.py +0 -0
  60. {slurm_code-0.1.28 → slurm_code-0.1.32}/scripts/tmux-project.sh +0 -0
  61. {slurm_code-0.1.28 → slurm_code-0.1.32}/setup.cfg +0 -0
  62. {slurm_code-0.1.28 → slurm_code-0.1.32}/src/slurm_code/__init__.py +0 -0
  63. {slurm_code-0.1.28 → slurm_code-0.1.32}/src/slurm_code/cli.py +0 -0
  64. {slurm_code-0.1.28 → slurm_code-0.1.32}/src/slurm_code/config.py +0 -0
  65. {slurm_code-0.1.28 → slurm_code-0.1.32}/src/slurm_code/gdk-code.py +0 -0
  66. {slurm_code-0.1.28 → slurm_code-0.1.32}/src/slurm_code.egg-info/dependency_links.txt +0 -0
  67. {slurm_code-0.1.28 → slurm_code-0.1.32}/src/slurm_code.egg-info/entry_points.txt +0 -0
  68. {slurm_code-0.1.28 → slurm_code-0.1.32}/src/slurm_code.egg-info/requires.txt +0 -0
  69. {slurm_code-0.1.28 → slurm_code-0.1.32}/src/slurm_code.egg-info/top_level.txt +0 -0
  70. {slurm_code-0.1.28 → slurm_code-0.1.32}/test/__init__.py +0 -0
  71. {slurm_code-0.1.28 → slurm_code-0.1.32}/test/test_dummy.py +0 -0
  72. {slurm_code-0.1.28 → slurm_code-0.1.32}/test/test_modulename.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: slurm-code
3
- Version: 0.1.28
3
+ Version: 0.1.32
4
4
  Summary: Project description
5
5
  Author-email: Your Name <your@email.com>
6
6
  License: MIT
@@ -40,11 +40,11 @@ website:
40
40
  title: "slurm-code"
41
41
  page-navigation: true
42
42
  navbar:
43
- left:
44
- - href: api/
45
- text: API reference
46
- # - href: gallery/
47
- # text: Gallery
43
+ # left:
44
+ # - href: api/
45
+ # text: API reference
46
+ # # - href: gallery/
47
+ # # text: Gallery
48
48
  right:
49
49
  - icon: github
50
50
  href: https://github.com/munch-group/slurm-code/
@@ -56,8 +56,10 @@ website:
56
56
  contents:
57
57
  - pages/getting-started.md
58
58
  - pages/submit.md
59
+ - pages/jobs.md
60
+ - pages/cancel.md
61
+ - pages/reconnect.md
59
62
  - pages/profiles.md
60
- - pages/managing-jobs.md
61
63
 
62
64
  lightbox: true
63
65
 
@@ -65,7 +67,7 @@ format:
65
67
  html:
66
68
  theme: cosmo
67
69
  css:
68
- - api/_styles-quartodoc.css
70
+ # - api/_styles-quartodoc.css
69
71
  - styles.css
70
72
  # - custom.scss
71
73
  toc: true
@@ -75,29 +77,29 @@ format:
75
77
  mermaid:
76
78
  theme: neutral
77
79
 
78
- quartodoc:
79
- package: slurm-code
80
- style: pkgdown
81
- dir: api
82
- render_interlinks: true
83
- options:
84
- signature_name: full
85
- renderer:
86
- style: markdown
87
- table_style: description-list
88
- sidebar: "api/_sidebar.yml"
89
- css: "api/_styles-quartodoc.css"
80
+ # quartodoc:
81
+ # package: slurm-code
82
+ # style: pkgdown
83
+ # dir: api
84
+ # render_interlinks: true
85
+ # options:
86
+ # signature_name: full
87
+ # renderer:
88
+ # style: markdown
89
+ # table_style: description-list
90
+ # sidebar: "api/_sidebar.yml"
91
+ # css: "api/_styles-quartodoc.css"
90
92
 
91
- sections:
92
- - title: Some section
93
- package: slurm_code.modulename
94
- desc: |
95
- Some description...
96
- contents:
97
- - functionname
98
- - title: Some other section
99
- package: slurm_code.modulename
100
- desc: |
101
- Some description...
102
- contents:
103
- - scriptname
93
+ # sections:
94
+ # - title: Some section
95
+ # package: slurm_code.modulename
96
+ # desc: |
97
+ # Some description...
98
+ # contents:
99
+ # - functionname
100
+ # - title: Some other section
101
+ # package: slurm_code.modulename
102
+ # desc: |
103
+ # Some description...
104
+ # contents:
105
+ # - scriptname
@@ -33,10 +33,9 @@ pip install slurm-code
33
33
 
34
34
  ## Prerequisites
35
35
 
36
- - An SSH host alias configured in `~/.ssh/config` for the GenomeDK login node (default alias: `gdk`)
37
- - [VSCode](https://code.visualstudio.com/) with the [Remote - SSH](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh) extension installed
38
-
39
- A minimal SSH config entry:
36
+ 1. SSH keys set up for [login to GenomeDK without password](https://genome.au.dk/docs/getting-started/#public-key-authentication):
37
+ 2. [VSCode](https://code.visualstudio.com/) with the [Remote - SSH](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh) extension installed
38
+ 3. An SSH host alias configured in `~/.ssh/config` for the GenomeDK login node (default alias: `gdk`):
40
39
 
41
40
  ```
42
41
  Host gdk
@@ -74,7 +73,7 @@ slurm-code -H my-cluster submit ~/project
74
73
 
75
74
  | Command | Description |
76
75
  |---------|-------------|
77
- | [`submit`](submit.md) | Submit a SLURM job and open VSCode on the node |
76
+ | [`submit`](submit.md) | Submit a SLURM job and open VSCode on the node. [Full documentation](submit.md) |
78
77
  | [`profiles`](profiles.md) | Show available submit profiles |
79
78
  | [`jobs`](managing-jobs.md#listing-jobs) | List running slurm-code jobs |
80
79
  | [`cancel`](managing-jobs.md#cancelling-jobs) | Cancel slurm-code jobs |
@@ -1,5 +1,5 @@
1
1
  ---
2
- title: Submitting Jobs
2
+ title: Submit Jobs
3
3
  ---
4
4
 
5
5
  The `submit` command creates a SLURM job, waits for a node to be allocated and ready, then opens VSCode connected to that node.
@@ -104,7 +104,7 @@ slurm-code submit -A my_account
104
104
 
105
105
  #### SLURM environment variables
106
106
 
107
- When a `DIRECTORY` is given, slurm-code writes the job's SLURM environment variables (such as `SLURM_JOB_ID`, `SLURM_CPUS_PER_TASK`, `SLURM_MEM_PER_CPU`, etc.) to `<DIRECTORY>/.slurm-code-slurm-env.sh`. This makes the variables available in VSCode integrated terminals, which would otherwise not have them since they run outside the job's process tree.
107
+ When a `DIRECTORY` is given, slurm-code writes the job's SLURM environment variables (such as `VS_SLURM_JOB_ID`, `VS_SLURM_CPUS_PER_TASK`, `VS_SLURM_MEM_PER_CPU`, etc.) to `<DIRECTORY>/.slurm-code-slurm-env.sh`. These use a `VS_` prefix to avoid colliding with native SLURM variables (which would interfere with `sbatch` and `srun`). The variables are available in VSCode integrated terminals, which would otherwise not have them since they run outside the job's process tree.
108
108
 
109
109
  #### Pixi activation
110
110
 
@@ -120,7 +120,7 @@ On first use, you will be prompted to add a source line to `~/.bashrc` on the cl
120
120
 
121
121
  The bashrc hook does two things:
122
122
 
123
- 1. Sources `~/.slurm-code-env.sh` (a loader that is overwritten on each submit with absolute paths to the current project's SLURM env script). This provides SLURM variables like `SLURM_JOB_ID` and `SLURM_MEM_PER_CPU` in every shell.
123
+ 1. Sources `~/.slurm-code-env.sh` (a loader that is overwritten on each submit with absolute paths to the current project's SLURM env script). This provides variables like `VS_SLURM_JOB_ID` and `VS_SLURM_MEM_PER_CPU` in every shell.
124
124
  2. Sources `.slurm-code-pixi-env.sh` using a **relative** path, so pixi activation only happens when the shell starts in the project directory (as VSCode integrated terminals do). A regular SSH login starts in `~` and is unaffected.
125
125
 
126
126
  ### Profiles
@@ -279,7 +279,7 @@ environments:
279
279
  - conda: https://conda.anaconda.org/conda-forge/linux-64/tokenizers-0.22.2-py313h4d6fefd_0.conda
280
280
  - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.3.0-pyhcf101f3_0.conda
281
281
  - conda: https://conda.anaconda.org/conda-forge/linux-64/tornado-6.5.3-py313h07c4f96_0.conda
282
- - conda: https://conda.anaconda.org/conda-forge/noarch/tqdm-4.67.1-pyhd8ed1ab_1.conda
282
+ - conda: https://conda.anaconda.org/conda-forge/noarch/tqdm-4.67.3-pyh8f84b5b_0.conda
283
283
  - conda: https://conda.anaconda.org/conda-forge/noarch/traitlets-5.14.3-pyhd8ed1ab_1.conda
284
284
  - conda: https://conda.anaconda.org/conda-forge/noarch/typer-slim-0.20.0-pyhcf101f3_1.conda
285
285
  - conda: https://conda.anaconda.org/conda-forge/noarch/typing-extensions-4.15.0-h396c80c_0.conda
@@ -603,7 +603,7 @@ environments:
603
603
  - conda: https://conda.anaconda.org/conda-forge/osx-arm64/tokenizers-0.22.2-py313h4bd1e59_0.conda
604
604
  - conda: https://conda.anaconda.org/conda-forge/noarch/tomli-2.3.0-pyhcf101f3_0.conda
605
605
  - conda: https://conda.anaconda.org/conda-forge/osx-arm64/tornado-6.5.3-py313h6535dbc_0.conda
606
- - conda: https://conda.anaconda.org/conda-forge/noarch/tqdm-4.67.1-pyhd8ed1ab_1.conda
606
+ - conda: https://conda.anaconda.org/conda-forge/noarch/tqdm-4.67.3-pyh8f84b5b_0.conda
607
607
  - conda: https://conda.anaconda.org/conda-forge/noarch/traitlets-5.14.3-pyhd8ed1ab_1.conda
608
608
  - conda: https://conda.anaconda.org/conda-forge/noarch/typer-slim-0.20.0-pyhcf101f3_1.conda
609
609
  - conda: https://conda.anaconda.org/conda-forge/noarch/typing-extensions-4.15.0-h396c80c_0.conda
@@ -9187,17 +9187,18 @@ packages:
9187
9187
  - pkg:pypi/tornado?source=hash-mapping
9188
9188
  size: 880049
9189
9189
  timestamp: 1765836649731
9190
- - conda: https://conda.anaconda.org/conda-forge/noarch/tqdm-4.67.1-pyhd8ed1ab_1.conda
9191
- sha256: 11e2c85468ae9902d24a27137b6b39b4a78099806e551d390e394a8c34b48e40
9192
- md5: 9efbfdc37242619130ea42b1cc4ed861
9190
+ - conda: https://conda.anaconda.org/conda-forge/noarch/tqdm-4.67.3-pyh8f84b5b_0.conda
9191
+ sha256: 9ef8e47cf00e4d6dcc114eb32a1504cc18206300572ef14d76634ba29dfe1eb6
9192
+ md5: e5ce43272193b38c2e9037446c1d9206
9193
9193
  depends:
9194
- - colorama
9195
- - python >=3.9
9196
- license: MPL-2.0 or MIT
9194
+ - python >=3.10
9195
+ - __unix
9196
+ - python
9197
+ license: MPL-2.0 and MIT
9197
9198
  purls:
9198
- - pkg:pypi/tqdm?source=hash-mapping
9199
- size: 89498
9200
- timestamp: 1735661472632
9199
+ - pkg:pypi/tqdm?source=compressed-mapping
9200
+ size: 94132
9201
+ timestamp: 1770153424136
9201
9202
  - conda: https://conda.anaconda.org/conda-forge/noarch/tqdm-4.67.3-pyha7b4d00_0.conda
9202
9203
  sha256: 63cc2def6e168622728c7800ed6b3c1761ceecb18b354c81cee1a0a94c09900a
9203
9204
  md5: af77160f8428924c17db94e04aa69409
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "slurm-code"
7
- version = "0.1.28"
7
+ version = "0.1.32"
8
8
  description = "Project description"
9
9
  authors = [
10
10
  {name = "Your Name", email = "your@email.com"}
@@ -61,6 +61,7 @@ ipython = "*"
61
61
  seaborn = "*"
62
62
  nbdime = "*"
63
63
  r-rsvg = "*"
64
+ tqdm = ">=4.67.3,<5"
64
65
 
65
66
  # [tool.pixi.pypi-dependencies]
66
67
  # slurm-code = { path = ".", editable = true }
@@ -187,15 +187,15 @@ LOADER_SCRIPT = ".slurm-code-env.sh" # written to ~ on each submit
187
187
 
188
188
  # Mapping from scontrol field names to SLURM environment variable names
189
189
  _SCONTROL_TO_ENV = {
190
- "JobId": "SLURM_JOB_ID",
191
- "JobName": "SLURM_JOB_NAME",
192
- "Partition": "SLURM_JOB_PARTITION",
193
- "Account": "SLURM_JOB_ACCOUNT",
194
- "NumNodes": "SLURM_JOB_NUM_NODES",
195
- "NumCPUs": "SLURM_CPUS_ON_NODE",
196
- "NodeList": "SLURM_JOB_NODELIST",
197
- "TimeLimit": "SLURM_TIMELIMIT",
198
- "WorkDir": "SLURM_SUBMIT_DIR",
190
+ "JobId": "VS_SLURM_JOB_ID",
191
+ "JobName": "VS_SLURM_JOB_NAME",
192
+ "Partition": "VS_SLURM_JOB_PARTITION",
193
+ "Account": "VS_SLURM_JOB_ACCOUNT",
194
+ "NumNodes": "VS_SLURM_JOB_NUM_NODES",
195
+ "NumCPUs": "VS_SLURM_CPUS_ON_NODE",
196
+ "NodeList": "VS_SLURM_JOB_NODELIST",
197
+ "TimeLimit": "VS_SLURM_TIMELIMIT",
198
+ "WorkDir": "VS_SLURM_SUBMIT_DIR",
199
199
  }
200
200
 
201
201
 
@@ -243,17 +243,17 @@ def setup_slurm_env(jobid, directory, host="gdk"):
243
243
  unit = match.group(2).upper()
244
244
  multipliers = {"": 1, "K": 1, "M": 1, "G": 1024, "T": 1024 * 1024}
245
245
  mb_value = num * multipliers.get(unit, 1)
246
- lines.append(f"export SLURM_MEM_PER_CPU={mb_value!r}")
246
+ lines.append(f"export VS_SLURM_MEM_PER_CPU={mb_value!r}")
247
247
 
248
248
  # CPUs per task from ReqTRES or TresPerTask
249
249
  cpus_per_task = fields.get("CPUs/Task")
250
250
  if cpus_per_task:
251
- lines.append(f"export SLURM_CPUS_PER_TASK={cpus_per_task!r}")
251
+ lines.append(f"export VS_SLURM_CPUS_PER_TASK={cpus_per_task!r}")
252
252
 
253
253
  # NTasks
254
254
  ntasks = fields.get("NumTasks")
255
255
  if ntasks:
256
- lines.append(f"export SLURM_NTASKS={ntasks!r}")
256
+ lines.append(f"export VS_SLURM_NTASKS={ntasks!r}")
257
257
 
258
258
  script_content = "\n".join(lines) + "\n"
259
259
  script_path = f"{directory}/{SLURM_ENV_SCRIPT}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: slurm-code
3
- Version: 0.1.28
3
+ Version: 0.1.32
4
4
  Summary: Project description
5
5
  Author-email: Your Name <your@email.com>
6
6
  License: MIT
@@ -35,15 +35,8 @@ docs/_extensions/machow/interlinks/interlinks.lua
35
35
  docs/_inv/griffe_objects.txt
36
36
  docs/_inv/numpy_objects.txt
37
37
  docs/_inv/python_objects.txt
38
- docs/api/_sidebar.yml
39
- docs/api/_styles-quartodoc.css
40
- docs/api/functionname.qmd
41
- docs/api/index.qmd
42
- docs/api/scriptname.qmd
43
- docs/pages/example.ipynb
44
38
  docs/pages/getting-started.md
45
39
  docs/pages/managing-jobs.md
46
- docs/pages/overview.ipynb
47
40
  docs/pages/profiles.md
48
41
  docs/pages/submit.md
49
42
  scripts/bump_changelog.py
@@ -1,12 +0,0 @@
1
- website:
2
- sidebar:
3
- - contents:
4
- - api/index.qmd
5
- - contents:
6
- - api/functionname.qmd
7
- section: Some section
8
- - contents:
9
- - api/scriptname.qmd
10
- section: Some other section
11
- id: api
12
- - id: dummy-sidebar
@@ -1,22 +0,0 @@
1
- /*
2
- This file generated automatically by quartodoc version 0.11.1.
3
- Modifications may be overwritten by quartodoc build. If you want to
4
- customize styles, create a new .css file to avoid losing changes.
5
- */
6
-
7
-
8
- /* styles for parameter tables, etc.. ----
9
- */
10
-
11
- .doc-section dt code {
12
- background: none;
13
- }
14
-
15
- .doc-section dt {
16
- /* background-color: lightyellow; */
17
- display: block;
18
- }
19
-
20
- .doc-section dl dd {
21
- margin-left: 3rem;
22
- }
@@ -1,35 +0,0 @@
1
- # functionname { #slurm_code.modulename.functionname }
2
-
3
- ```python
4
- slurm_code.modulename.functionname(x=1, y=1)
5
- ```
6
-
7
- The sum of two numbers.
8
-
9
- ## Parameters {.doc-section .doc-section-parameters}
10
-
11
- <code>[**x**]{.parameter-name} [:]{.parameter-annotation-sep} [[int](`int`)]{.parameter-annotation} [ = ]{.parameter-default-sep} [1]{.parameter-default}</code>
12
-
13
- : The first number
14
-
15
- <code>[**y**]{.parameter-name} [:]{.parameter-annotation-sep} [[int](`int`)]{.parameter-annotation} [ = ]{.parameter-default-sep} [1]{.parameter-default}</code>
16
-
17
- : The second number.
18
-
19
- ## Returns {.doc-section .doc-section-returns}
20
-
21
- <code>[]{.parameter-name} [:]{.parameter-annotation-sep} [[int](`int`)]{.parameter-annotation}</code>
22
-
23
- : Sum of two numbers.
24
-
25
- ## Examples {.doc-section .doc-section-examples}
26
-
27
- Adding two numbers
28
-
29
- ```python
30
- result = foo(2, 4)
31
- ```
32
-
33
- ## See Also {.doc-section .doc-section-see-also}
34
-
35
- [](`libraryname.modulename.scriptname`)
@@ -1,19 +0,0 @@
1
- # Function reference {.doc .doc-index}
2
-
3
- ## Some section
4
-
5
- Some description...
6
-
7
-
8
- | | |
9
- | --- | --- |
10
- | [functionname](functionname.qmd#slurm_code.modulename.functionname) | The sum of two numbers. |
11
-
12
- ## Some other section
13
-
14
- Some description...
15
-
16
-
17
- | | |
18
- | --- | --- |
19
- | [scriptname](scriptname.qmd#slurm_code.modulename.scriptname) | |
@@ -1,6 +0,0 @@
1
- # scriptname { #slurm_code.modulename.scriptname }
2
-
3
- ```python
4
- slurm_code.modulename.scriptname()
5
- ```
6
-