@@ -1164,23 +1164,7 @@ provides sample ``devcontainer.json`` configuration files
1164
1164
<https://github.com/sagemath/sage/tree/develop/.devcontainer/> `_ for this
1165
1165
purpose.
1166
1166
1167
- To get started, symlink (or copy) one of the sample files to
1168
- ``$SAGE_ROOT/.devcontainer/devcontainer.json ``. For example, choose
1169
- `$SAGE_ROOT/.devcontainer/portability-ubuntu-jammy-standard/devcontainer.json
1170
- <https://github.com/sagemath/sage/tree/develop/.devcontainer/portability-ubuntu-jammy-standard/devcontainer.json> `_, which uses the Docker image based on ``ubuntu-jammy-standard ``,
1171
- the most recent
1172
- development version of Sage (``dev `` tag), and a full installation of
1173
- the Sage distribution (``with-targets ``).
1174
-
1175
- In macOS for example, you can do this using the shell as follows::
1176
-
1177
- [mkoeppe@sage sage] $ (cd .devcontainer && ln -s portability-ubuntu-jammy-standard/devcontainer.json .)
1178
-
1179
- Now start VS Code::
1180
-
1181
- [mkoeppe@sage sage] $ code .
1182
-
1183
- Then VS Code may prompt you whether you would like to open the current
1167
+ If you open the sage folder in VS Code, it may prompt you whether you would like to open the current
1184
1168
directory in the dev container (yes). If it does not, use the command palette
1185
1169
(:kbd: `Ctrl ` + :kbd: `Shift ` + :kbd: `P `), enter the command "Remote-Containers:
1186
1170
Reopen Folder in Container" , and hit :kbd: `Enter `.
@@ -1190,6 +1174,14 @@ application, then in the command palette of VS Code, enter "Remote-Containers:
1190
1174
Open Folder in Container", and hit :kbd: `Enter `, and choose the directory
1191
1175
``$SAGE_ROOT `` of your local Sage repository.
1192
1176
1177
+ VS Code then prompts you to choose a dev container configuration.
1178
+ For example, choose "Ubuntu jammy" `.devcontainer/portability-ubuntu-jammy-standard/devcontainer.json
1179
+ <https://github.com/sagemath/sage/tree/develop/.devcontainer/portability-ubuntu-jammy-standard/devcontainer.json> `_,
1180
+ which uses the Docker image based on ``ubuntu-jammy-standard ``, the most recent
1181
+ development version of Sage (``dev `` tag), and a full installation of
1182
+ the Sage distribution (``with-targets ``). Other dev container configurations
1183
+ are described below.
1184
+
1193
1185
Once VS Code starts configuring the dev container, by clicking on "show log",
1194
1186
you can see what it does:
1195
1187
@@ -1225,8 +1217,7 @@ in a terminal, `open a new terminal in VS Code
1225
1217
``configure `` script.
1226
1218
1227
1219
You can edit a copy of the configuration file to change to a different platform, another
1228
- version, or build stage. After editing the configuration file (or changing the
1229
- symlink), run "Remote-Containers: Rebuild Container" from the command
1220
+ version, or build stage. After editing the configuration file, run "Remote-Containers: Rebuild Container" from the command
1230
1221
palette. See the `VS Code devcontainer.json reference
1231
1222
<https://code.visualstudio.com/docs/remote/devcontainerjson-reference> `_
1232
1223
and the `GitHub introduction to dev containers
@@ -1248,8 +1239,7 @@ installation of SageMath in this container by building from the current source t
1248
1239
project <https://hub.docker.com/r/computop/sage/> `_, providing
1249
1240
SnapPy, Regina, PHCPack, etc.
1250
1241
1251
- If you want to use one of these ``devcontainer.json `` files, symlink (or copy)
1252
- it and start VS Code as explained above. After VS Code finished configuring the
1242
+ After VS Code finished configuring the
1253
1243
dev container, to use Sage in a terminal, `open a new terminal in VS Code
1254
1244
<https://code.visualstudio.com/docs/terminal/basics> `_, type ``./sage `` and hit
1255
1245
:kbd: `Enter `.
@@ -1284,8 +1274,7 @@ work without change) or to adapt them to your needs.
1284
1274
project <https://hub.docker.com/r/computop/sage/> `_, providing
1285
1275
SnapPy, Regina, PHCPack, etc.
1286
1276
1287
- If you want to use one of these ``devcontainer.json `` files, symlink (or copy)
1288
- it and start VS Code as explained above. After VS Code finished configuring the
1277
+ After VS Code finished configuring the
1289
1278
dev container, to use Sage in a terminal, `open a new terminal in VS Code
1290
1279
<https://code.visualstudio.com/docs/terminal/basics> `_, type ``sage `` and hit
1291
1280
:kbd: `Enter `. (Do not use ``./sage ``; this will not work because the source
0 commit comments