Skip to content

Conversation

@albertomercurio
Copy link
Member

Checklist

Thank you for contributing to Tutorials for Quantum Toolbox in Julia! Please make sure you have finished the following tasks before opening the PR.

  • Please read Contributing to Quantum Toolbox in Julia.
  • The (last update) date were modified for new or updated tutorials.
  • For new tutorials, a Version Information section was added at the end and displays the output of versioninfo().
  • All tutorials were able to render locally by running: make render.

Request for a review after you have completed all the tasks. If you have not finished them all, you can also open a Draft Pull Request to let the others know this on-going work.

Description

This PR introduces the feature of running the notebooks in Binder, as also discussed in the Quarto Documentation. This would help people approaching to QuantumToolbox.jl for the first time.

This PR adds several configuration files, used by Binder to build, together with two GitHub Action files

  • One action converts all the .qmd files in the QuantumToolbox.jl and HierarchicalEOM.jl folders into .ipynb notebook files. Then, it pushes all the .ipynb files and the Binder configuration files into the notebooks branch.
  • The second action builds the Binder container from the notebooks branch. This should not be done frequently, as Binder would keep pulling the container. For the moment we can activate this action manually when we think it is needed.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds Binder integration for running Julia tutorials by introducing Binder configuration files, updating tutorial metadata to include Binder links, and adding GitHub Actions workflows for converting notebooks and building the Binder container.

  • Added and configured Binder-related files (postBuild, apt.txt, .jupyter config).
  • Updated multiple .qmd tutorial files to include a clickable Binder link.
  • Introduced workflows to synchronize notebooks and build the container image.

Reviewed Changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
postBuild Adds a bash script to install Quarto, code‑server, and configure VS Code, supporting the Binder build environment.
apt.txt Adds a dependency (zip) required for the Binder environment.
QuantumToolbox.jl/*.qmd Updates tutorial files to include a new “other-links” section with Binder links.
HierarchicalEOM.jl/*.qmd Updates tutorial files to include a Binder link for interactive notebooks.
.jupyter/jupyter_notebook_config.py Configures a VS Code server via Jupyter’s ServerProxy ensuring integration with Binder.
.github/workflows/build-notebooks.yml Introduces an action for converting .qmd files to .ipynb notebooks and synchronizing them with the notebooks branch.
.github/workflows/build-notebooks-container.yml Adds an action to build the Binder container image from the notebooks branch.

@github-actions
Copy link

github-actions bot commented May 21, 2025

PR Preview Action v1.6.1

🚀 View preview at
https://qutip.github.io/qutip-julia-tutorials/pr-preview/pr-42/

Built to branch gh-pages at 2025-05-22 14:40 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@albertomercurio albertomercurio force-pushed the alberto-notebooks-action branch from 994ff8d to 4b96597 Compare May 22, 2025 14:28
@ytdHuang ytdHuang merged commit 56be2d4 into main May 22, 2025
2 checks passed
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.

3 participants