Skip to content

Commit 0fb292c

Browse files
committed
add summary of jupyterlab checkbox change
1 parent 638b62c commit 0fb292c

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

ondemand/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,27 @@ attributes:
130130
max: 2
131131
```
132132
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.
144+
form:
145+
- jupyterlab_switch
146+
```
147+
148+
template script.sh:
149+
150+
```
151+
jupyter <%= context.jupyterlab_switch == "1" ? "lab" : "notebook" %> --config="${CONFIG_FILE}" <%= context.extra_jupyter_args %>
152+
```
153+
133154
134155
## Jupyter App Detailed Tutorial
135156

0 commit comments

Comments
 (0)