Skip to content

Binder link doesn't redirect to notebook file #12761

@albertomercurio

Description

@albertomercurio

Bug description

I followed the simple guide to implement Binder in quarto. I have successfully set the binder container and everything seems to work.

When I click the "Launch Binder" button, it correctly open Binder, but it doesn't open the related notebook. Moreover, if I open I manually, by navigating the folders, I cannot run python, as it requires the Jupyter extension for VSCode.

Steps to reproduce

My _quarto.yml file:

project:
  type: book
  output-dir: _output

book:
  title: "Numerical Methods for Quantum Optics and Open Quantum Systems"
  author:
    - name: Alberto Mercurio
    - name: Daniele De Bernardis
  chapters:
    - index.qmd
    - introduction.qmd

# default format for all files
format:
  html:
    theme:
      light: flatly
      dark: darkly
    highlight-style: atom-one
    css: styles.css
    toc: true
    published-title: Last Update
    date-format: iso
    code-line-numbers: true
    colorlinks: true
    footnotes-hover: true
    fig-align: center
    fig-responsive: true

jupyter: python3

execute:
  eval: true
  cache: true
  freeze: false

My introduction.qmd file:

---
code-links: binder
---

# Introduction

Some text...

```{python}
import numpy as np

# Vectorized array operations
x = np.linspace(0, 10, 20)
y = np.sin(x) + 0.5 * x**2
print(y[:5])  # show first five results
```

Actual behavior

No response

Expected behavior

No response

Your environment

No response

Quarto check output

Quarto 1.7.23
[✓] Checking environment information...
      Quarto cache location: /Users/alberto/Library/Caches/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.6.3: OK
      Dart Sass version 1.85.1: OK
      Deno version 1.46.3: OK
      Typst version 0.13.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.7.23
      Path: /Applications/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /Library/TeX/texbin
      Version: 2025

[✓] Checking Chrome Headless....................OK
      Using: Chrome found on system
      Path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
      Source: MacOS known location

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.10.16 (Conda)
      Path: /opt/homebrew/Caskroom/miniconda/base/envs/computational-quantum-optics-lectures/bin/python
      Jupyter: 5.7.2
      Kernels: julia-1.11, julia-1.10, python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions