Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[BUG] - Incorrect list rendering in Google Colab tutorials

Aperta
#3,946 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
jupyter-notebook, python
Ambito
documentation

Direzione di ricerca

Inizia con i dieci URL dei tutorial elencati nell’issue e confronta ogni sezione interessata della pagina HTML con il relativo notebook Google Colab generato, usando l’issue correlata #3939 come contesto. Controlla le sorgenti dei tutorial e il percorso di generazione dei notebook per identificare il problema condiviso di rendering delle liste. Il lavoro è completato quando tutti i tutorial elencati conservano in Colab gli elementi separati, i marcatori, l’annidamento e il testo circostante.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Add Link
  1. https://docs.pytorch.org/tutorials/advanced/usb_semisup_learn.html
  2. https://docs.pytorch.org/tutorials/beginner/basics/autogradqs_tutorial.html
  3. https://docs.pytorch.org/tutorials/beginner/basics/data_tutorial.html
  4. https://docs.pytorch.org/tutorials/beginner/blitz/neural_networks_tutorial.html
  5. https://docs.pytorch.org/tutorials/beginner/nn_tutorial.html
  6. https://docs.pytorch.org/tutorials/intermediate/optimizer_step_in_backward_tutorial.html
  7. https://docs.pytorch.org/tutorials/recipes/recipes/profiler_recipe.html
  8. https://docs.pytorch.org/tutorials/recipes/recipes/timer_quick_start.html
  9. https://docs.pytorch.org/tutorials/recipes/torch_compiler_set_stance_tutorial.html
  10. https://docs.pytorch.org/tutorials/unstable/gpu_direct_storage.html
Describe the bug
Description

The list-rendering problem previously reported in #3939 also occurs in several other tutorials.

On the PyTorch Tutorials HTML pages, the affected lists render correctly. However, after opening the generated notebooks through Run in Google Colab, the same content is not rendered as a proper list.

Steps to reproduce
  1. Open one of the tutorial pages listed below.
  2. Select Run in Google Colab.
  3. Navigate to the affected section.
  4. Compare the list in Google Colab with the corresponding list on the tutorial HTML page.
Affected tutorials
1. USB Semi-Supervised Learning

Tutorial: https://docs.pytorch.org/tutorials/advanced/usb_semisup_learn.html

Affected content: the list of functions imported from semilearn in the Use USB to Train FreeMatch/SoftMatch on CIFAR-10 with only 40 labels section.

Image
2. Automatic Differentiation with torch.autograd

Tutorial: https://docs.pytorch.org/tutorials/beginner/basics/autogradqs_tutorial.html

Affected content:

  • the list in the note explaining gradient availability; and
  • the list of reasons for disabling gradient tracking.
Image
3. Datasets & DataLoaders

Tutorial: https://docs.pytorch.org/tutorials/beginner/basics/data_tutorial.html

Affected content: the FashionMNIST parameter list in the Loading a Dataset section.

Image
4. Neural Networks

Tutorial: https://docs.pytorch.org/tutorials/beginner/blitz/neural_networks_tutorial.html

Affected content: the lists under Recap, At this point, we covered, and Still Left.

Image
5. What is torch.nn really?

Tutorial: https://docs.pytorch.org/tutorials/beginner/nn_tutorial.html

Affected content: the list of assumptions in the Wrapping DataLoader section.

Image
6. Optimizer Step in Backward

Tutorial: https://docs.pytorch.org/tutorials/intermediate/optimizer_step_in_backward_tutorial.html

Affected content: the numbered list following Several major observations.

Image
7. PyTorch Profiler

Tutorial: https://docs.pytorch.org/tutorials/recipes/recipes/profiler_recipe.html

Affected content: the nested activity types under the activities profiler parameter in the Using profiler to analyze execution time section.

Image
8. Timer Quick Start

Tutorial: https://docs.pytorch.org/tutorials/recipes/recipes/timer_quick_start.html

Affected content: the Contents list near the beginning of the tutorial.

Image
9. Changing the Compilation Stance

Tutorial: https://docs.pytorch.org/tutorials/recipes/torch_compiler_set_stance_tutorial.html

Affected content: the list following Other stances include.

Image
10. GPU Direct Storage

Tutorial: https://docs.pytorch.org/tutorials/unstable/gpu_direct_storage.html

Affected content: the list following The steps involved in the process are as follows.

Image
Expected result

Lists in the generated Google Colab notebooks should preserve the same structure as the corresponding lists on the PyTorch Tutorials HTML pages:

  • each item should appear on a separate line;
  • bullet and numbered lists should retain their markers;
  • nested items should retain their hierarchy; and
  • surrounding prose should remain separate from the list.
Describe your environment

Google Colab

Lingua principale
Python
Stelle
9.3k
Fork
4.4k
Merge medio
1g 21h
PR unite (30g)
4

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pytorch/tutorials

Tutte le issue di pytorch/tutorials

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.