You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`custom_queue` is used instead of `partition` because of 1.8 bug that will be fixed prior to release
46
+
47
+
script.yml.erb changes:
48
+
49
+
```yaml
50
+
script:
51
+
queue_name: "<%= custom_queue %>"
52
+
```
53
+
54
+
- the constructor for the Ruby object https://osc.github.io/ood_core/0.11.4/OodCore/Job/Script.html shows all the options you can set in the script.yml above (https://www.rubydoc.info/gems/ood_core/OodCore/Job/Script typically shows the latest - but sometimes this service is unavailable)
55
+
56
+
### Deploy to production
57
+
58
+
Edit manifest:
59
+
60
+
```
61
+
---
62
+
# change the name, this is what shows up in the menu
63
+
name: HPC Tutorial Jupyter
64
+
# change the category just to differentiate from the system installed
65
+
# deskop application
66
+
category: Tutorial Apps
67
+
# change the subcategory
68
+
subcategory: Machine Learning
69
+
role: batch_connect
70
+
# change the description, this shows up when you hover over the menu item on the interactive sessions page
71
+
description: |
72
+
This app will launch a Jupyter Lab or Notebootk on one or more nodes.
- app directory names with periods in them do not display in the navbar, which is why we can rename the old app to jupyter.old
82
+
83
+
84
+
### Set the memory for the job
85
+
86
+
form.yml changes:
87
+
88
+
```
89
+
attributes:
90
+
memory:
91
+
widget: "number_field"
92
+
max: 1000
93
+
min: 200
94
+
step: 200
95
+
value: 600
96
+
label: "Memory (MB)"
97
+
help: "RSS Memory"
98
+
form:
99
+
- memory
100
+
```
101
+
102
+
- widget specifies the type of widget to be a number
103
+
- max the maximum value, ~1 GB in this case
104
+
- min the minimum value, 200 MB
105
+
- step the step size when users increase or decrease the value
106
+
- value the default value of 600 MB
107
+
- label the for UIs label
108
+
- help a help message
109
+
- See https://osc.github.io/ood-documentation/master/app-development/interactive/form.html#customizing-attributes for more details about what you can set in each "attribute"
110
+
111
+
script.yml.erb modifications:
112
+
113
+
```
114
+
script:
115
+
native:
116
+
- "--mem"
117
+
- "<%= memory %>M"
118
+
```
119
+
120
+
- script.native attributes are way for us to specify scheduler specific argument to sbatch or qsub or bsub
121
+
- this lets you set arguments that OnDemand doesn't provide an abstraction for
122
+
123
+
### Limit number of cores
124
+
125
+
form.yml:
126
+
127
+
```yaml
128
+
attributes:
129
+
bc_num_slots:
130
+
max: 2
131
+
```
132
+
133
+
### Add checkbox to start JupyterLab
134
+
135
+
form.yml:
136
+
137
+
```
138
+
attributes:
139
+
jupyterlab_switch:
140
+
widget: "check_box"
141
+
label: "Use JupyterLab instead of Jupyter Notebook?"
142
+
help: |
143
+
JupyterLab is the next generation of Jupyter, and is completely compatible with existing Jupyter Notebooks.
0 commit comments