courses icon indicating copy to clipboard operation
courses copied to clipboard

XML tags are hidden in the GitHub notebook preview

Open amarion35 opened this issue 1 year ago • 1 comments
trafficstars

In the prompt_engineering_interactive_tutorial/Anthropic 1P/04_Separating_Data_and_Instructions.ipynb notebook, for instance, even though this line of code contains XML tags, they are not visible in the GitHub preview: github_notebook_preview

Since it looks like a GitHub issue I created this discussion in the GitHub community: https://github.com/orgs/community/discussions/137038

amarion35 avatar Aug 28 '24 08:08 amarion35

GitHub is pretty bad at rendering notebooks generally - in Mobile Safari the code blocks have no horizontal scrollbar, making it impossible to read them.

I recommend building the notebooks into HTML and publishing those with GitHub Pages instead:

jupyter nbconvert --to html notebook.ipynb

Run that against each file to get the .html version, then setup a GitHub Actions workflow (3.5 Sonnet knows how to do that) to publish those to Pages for this repo.

simonw avatar Aug 30 '24 01:08 simonw