Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML tags are hidden in the GitHub notebook preview #27

Open
amarion35 opened this issue Aug 28, 2024 · 1 comment
Open

XML tags are hidden in the GitHub notebook preview #27

amarion35 opened this issue Aug 28, 2024 · 1 comment

Comments

@amarion35
Copy link

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

@simonw
Copy link
Contributor

simonw commented Aug 30, 2024

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.

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

No branches or pull requests

2 participants