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
which will show a live preview of your GitHub Pages site in a new
271
-
tab. As soon as you make edits in your Codespace tab, you can
272
-
return to this tab to (within a second or two) see how your edits
273
-
will update your live site. Note that this URL is private to you,
274
-
and your public site won't be updated until you Commit & Sync
275
-
your changes
276
-
(<xrefref="note-commit-sync"/>).
277
-
</p>
278
-
<p>
279
-
Personally, I use <c>GitHub.dev</c> (or even just the
280
-
<c>GitHub.com</c> edit button) rather than a full
281
-
Codespace when adding a quick post or making a quick edit on
282
-
many of my GitHub Pages websites. But the Codespace option is very
283
-
handy for when bigger changes are necessary, and you want to make
284
-
sure everything looks just right before pushing it live to the public.
285
-
</p>
286
-
</section>
287
244
<sectionxml:id="sec-codespace-management">
288
245
<title>Managing Your Codespaces</title>
289
246
<p>
@@ -297,9 +254,9 @@ there is the option to pay for additional resources.
297
254
As a mathematician
298
255
who almost exclusively uses GitHub Codespaces for doing the kinds
299
256
of work described in this handbook (and does so for much longer
300
-
periods of time than a tpyical mathematician),
257
+
periods of time than a typical mathematician),
301
258
I've only surpassed GitHub's free quota on the rare occassion
302
-
(and when I do, I've paid only \$2-\$6 per month).
259
+
(and when I do, I've paid only <m>\$2</m>-<m>\$6</m> per month).
303
260
I accomplish this by halting
304
261
my Codespaces when I'm not actively working on them.
305
262
</p>
@@ -343,9 +300,11 @@ Here is what these environments look like.
343
300
<sectionxml:id="sec-powering-up-your-codespce">
344
301
<title>Powering up your Codespce</title>
345
302
<p>
346
-
By default, your codespace will use a
347
-
2-core processor, 8GB of RAM, and 32GB of storage, with a quota of
348
-
40 usage hours per month. This is fine for many tasks,
303
+
As of January 2025, a default codespace will use a
304
+
2-core processor and 8GB of RAM, with a quota of
305
+
60 usage hours and 15GB storage per month. (This is increased
306
+
to 90 usage hours and 20GB storage for Pro/Education users.)
307
+
This is fine for many tasks,
349
308
but if you're doing data analysis (<xrefref="ch-jupyter"/>) or
350
309
formalized mathematics (<xrefref="sec-lean"/>) you may want some
351
310
more resources at your disposal.
@@ -374,5 +333,18 @@ the virtual machine that should be provisioned when creating a Codespace,
374
333
allowing for the automatic installation of appropriate software/libraries/dependencies
375
334
necessary for the use of a given repository.
376
335
</p>
336
+
<remark>
337
+
<p>
338
+
Setting up a custom <c>.devcontainer</c> is a slick way to
339
+
ensure you and your collaborators/students are running exactly
340
+
the same software (including versions, dependencies, etc.)!
341
+
No more <q>It works on my machine</q> while <q>I can't get it
342
+
to work on my machine</q>!
343
+
</p>
344
+
<p>
345
+
See <urlhref="https://code.visualstudio.com/docs/devcontainers/create-dev-container#_create-a-devcontainerjson-file">VisualStudio.com/docs/devcontainers</url>
0 commit comments