Skip to content

Conversation

@mmcky
Copy link
Contributor

@mmcky mmcky commented Nov 30, 2025

Summary

This PR adds a centralized GPU admonition file that can be included in all JAX-related lectures, making it easier to maintain consistent notices across the repository.

Changes

  1. New file: lectures/_admonition/gpu.md

    • Contains the standard GPU admonition text
    • Can be updated in one place to affect all JAX lectures
  2. Updated jax_intro.md

    • Replaced inline GPU admonition with {include} _admonition/gpu.md
  3. Updated numpy_vs_numba_vs_jax.md

    • Replaced inline GPU admonition with {include} _admonition/gpu.md

GPU Admonition Content

The new simplified admonition:

This lecture is designed to run on a GPU. To use Google Colab's free GPUs, 
click the play icon top right, select Colab, and set the runtime to include a 
GPU. For local GPU setup, see the JAX installation guide.

Benefits

  • Single source of truth for GPU notice content
  • Easier to update wording across all lectures
  • Consistent with approach used in lecture-python.myst and lecture-jax
  • Simplified, more concise messaging

- Create _admonition/gpu.md for single-source GPU notice
- Update jax_intro.md to use include directive
- Update numpy_vs_numba_vs_jax.md to use include directive

This makes it easier to maintain consistent GPU notices across
all JAX-related lectures.
@github-actions
Copy link

github-actions bot commented Nov 30, 2025

@github-actions github-actions bot temporarily deployed to pull request November 30, 2025 01:25 Inactive
@mmcky
Copy link
Contributor Author

mmcky commented Nov 30, 2025

@jstac what do you think about this simplification of text.

Screenshot 2025-11-30 at 12 26 12 pm

@github-actions github-actions bot temporarily deployed to pull request November 30, 2025 21:32 Inactive
@mmcky mmcky merged commit c4c03c8 into main Nov 30, 2025
5 checks passed
@mmcky mmcky deleted the add-gpu-admonition branch November 30, 2025 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants