Skip to content

Commit 3bb1ac5

Browse files
committed
fmt
1 parent 4a1a7bc commit 3bb1ac5

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

template/template.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,11 @@ def make_template(
4747

4848
# Install R Kernel if requested
4949
if "r" in kernels:
50-
template = (
51-
template.apt_install("r-base")
52-
.run_cmd(
53-
[
54-
"R -e \"install.packages('IRkernel', repos='https://cloud.r-project.org')\"",
55-
"R -e \"IRkernel::installspec(user = FALSE, name = 'r', displayname = 'R')\"",
56-
]
57-
)
50+
template = template.apt_install("r-base").run_cmd(
51+
[
52+
"R -e \"install.packages('IRkernel', repos='https://cloud.r-project.org')\"",
53+
"R -e \"IRkernel::installspec(user = FALSE, name = 'r', displayname = 'R')\"",
54+
]
5855
)
5956

6057
# Install JavaScript Kernel if requested
@@ -120,4 +117,6 @@ def make_template(
120117
.copy("startup_scripts", ".ipython/profile_default/startup")
121118
)
122119

123-
return template.set_start_cmd(".jupyter/start-up.sh", wait_for_url("http://localhost:49999/health"))
120+
return template.set_start_cmd(
121+
".jupyter/start-up.sh", wait_for_url("http://localhost:49999/health")
122+
)

0 commit comments

Comments
 (0)