Skip to content

feat: auto-open notebook on page load - #22

Merged
mintybasil merged 2 commits into
mainfrom
zeroklaw/auto-open-notebook
Mar 30, 2026
Merged

feat: auto-open notebook on page load#22
mintybasil merged 2 commits into
mainfrom
zeroklaw/auto-open-notebook

Conversation

@zeroklaw

@zeroklaw zeroklaw commented Mar 30, 2026

Copy link
Copy Markdown
Member

Summary

Redirects users directly to the notebook instead of the JupyterLite launcher on page load.

How it works

Cloudflare Pages supports a _redirects file (same convention as Netlify). A single rule redirects / to /lab/index.html?path=boundless_profitability.ipynb — the ?path= param is the JupyterLab URL parameter for opening a specific file.

What didn't work

I first tried jupyter-lite.json with a defaultUrl key. After checking the schema-v0 docs, that property doesn't exist — the file only accepts jupyter-lite-schema-version and jupyter-config-data. No built-in config key controls which file opens on load.

Changes

  • _redirects — new file, one redirect rule
  • .github/workflows/deploy.yml — copy _redirects into _site/ alongside _headers
  • jupyter-lite.json — removed (was wrong)

@github-actions

github-actions Bot commented Mar 30, 2026

Copy link
Copy Markdown

🚀 Preview deployment ready!

URL: https://zeroklaw-auto-open-notebook.zerokrab-boundless-jupyter.pages.dev
Branch: zeroklaw/auto-open-notebook
Commit: 572b4bc3af2c6f2e286dbcd5fa1f42ae09254120

…defaultUrl)

jupyter-lite.json has no defaultUrl property in schema-v0.
Use Cloudflare Pages _redirects to redirect / to the ?path= URL
that opens the notebook directly instead of the launcher.
@mintybasil
mintybasil merged commit dc61159 into main Mar 30, 2026
1 check passed
@mintybasil
mintybasil deleted the zeroklaw/auto-open-notebook branch March 30, 2026 16:24
mintybasil pushed a commit that referenced this pull request Jun 12, 2026
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.

2 participants