Skip to content

Iframe#238

Merged
djangoliv merged 6 commits into
masterfrom
iframe
Apr 24, 2026
Merged

Iframe#238
djangoliv merged 6 commits into
masterfrom
iframe

Conversation

@djangoliv

Copy link
Copy Markdown
Collaborator
  • Add / update the documentation

@djangoliv djangoliv force-pushed the iframe branch 7 times, most recently from 3dba5c8 to 23c2f9f Compare April 22, 2026 08:22
When the local user UID (e.g. 1000) matches the UID of jovyan inside the
repo2docker image, useradd exits with code 4 and set -e kills the container.
The -o flag allows creating a user with a duplicate UID.
- Show a full-screen iframe on /hub/home when a server is active,
  with a floating Stop button that calls the JupyterHub API
- Show a "Start My Server" button when no server is running
- Inject ?next=/hub/home into all spawn flows so the user always
  returns to /hub/home after starting or stopping a server
- Patch SpawnHandler to redirect to /hub/home when no next param
- Override window.location.reload() in spawn.html so tljh_repo2docker's
  image table triggers spawn-pending with ?next=/hub/home
- Set Content-Security-Policy frame-ancestors to allow iframe embedding
- Show a loading overlay with a spinner while the iframe initializes
- After 15s with no response, display 'Server not responding' with a Reload button
- Reload button resets the overlay and restarts the timer
- onload clears the timer and hides the overlay
Override window.open et supprime les attributs target="_blank" des liens
dans l'iframe pour que RStudio (et les apps similaires) ouvre les pages
dans l'iframe plutôt qu'un nouvel onglet.
A thin tab on the right edge expands on click to reveal two stacked buttons:
- Stop: stops the server via the JupyterHub API
- Home: resets the iframe to the JupyterLab home page

The panel closes automatically after an action and animates with a CSS transition.
@djangoliv djangoliv merged commit 807ff1f into master Apr 24, 2026
3 checks passed
@djangoliv djangoliv deleted the iframe branch April 24, 2026 09:08
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.

1 participant