Objective: Explore the power of Quarto and GitHub to seamlessly publish Jupyter notebooks. By the end of this exercise, you will have your own live, web-accessible Jupyter notebook and experience in managing and updating its content.
-
Fork the Project:
- Fork the target repository. This creates your personal copy of the project on GitHub.
-
Launch GitHub Codespace:
- Navigate to your forked repository.
- Click on the green "Code" button and from the dropdown, select "Codespaces" and click on “Create codespace on main”.
-
Publish with Quarto:
- Within your Codespace terminal, enter the command:
quarto publish gh-pages - This command instructs Quarto to compile and publish your notebook content to the
gh-pagesbranch, which GitHub automatically uses to host web-accessible content.
- Within your Codespace terminal, enter the command:
-
Modify the Jupyter Notebook:
- In your Codespace, locate the
hello.ipynbJupyter notebook and open it. - Make some changes or additions to the notebook content. Feel free to get creative!
- Save your changes once done.
- In your Codespace, locate the
-
Commit & Push:
- In the source control panel of Codespaces (typically an icon that looks like a branching tree), stage your changes and commit them with a descriptive message.
- Push your committed changes to your GitHub repository.
-
Review Your Live Notebook:
- Once the changes are pushed, navigate to the URL associated with the
gh-pagesof your forked repository (typically in the formathttps://[your-username].github.io/[repository-name]/). You should see the updated Jupyter notebook content live!
- Once the changes are pushed, navigate to the URL associated with the
- How do Codespaces enhance the experience of remote development and publishing?
- Discuss the significance of the
gh-pagesbranch in the context of GitHub.
Great work! 🌟 Leveraging Quarto and GitHub functionalities, you've just broadened your toolkit for publishing interactive content online. Dive deeper, and explore more possibilities!