Skip to content

feat(python-notebook-migration): add JupyterLab docker for notebook migration tool#5256

Merged
mengw15 merged 10 commits into
apache:mainfrom
zyratlo:migration-tool-jupyter-docker
Jun 17, 2026
Merged

feat(python-notebook-migration): add JupyterLab docker for notebook migration tool#5256
mengw15 merged 10 commits into
apache:mainfrom
zyratlo:migration-tool-jupyter-docker

Conversation

@zyratlo

@zyratlo zyratlo commented May 28, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Introduces the local JupyterLab docker that the upcoming notebook-migration microservice will talk to. Three files are added under notebook-migration-service/src/main/resources/:

  • DockerfileFROM jupyter/base-notebook:notebook-6.5.4; COPYs custom.js into /home/jovyan/.jupyter/custom/custom.js and fixes ownership.
  • docker-compose.yml — runs JupyterLab as texera-jupyter on host port 9100. Token/password auth disabled, XSRF check disabled, CSP set to allow frame-ancestors http://localhost:* so Texera can embed it in an iframe. Default URL is
    /tree.
  • custom.js — JupyterLab iframe customization. Posts cellClicked messages (with cell UUID) to window.parent and listens for triggerCellClick to scroll/highlight target cells.

Any related issues, documentation, discussions?

Closes #5255
Parent-issue #4301

How was this PR tested?

Verified locally that the stack comes up cleanly and Jupyter is reachable.

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 4.7)

@zyratlo

zyratlo commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

/request-review @mengw15

@github-actions github-actions Bot requested a review from mengw15 June 2, 2026 19:39

@mengw15 mengw15 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Left some comments

Comment thread notebook-migration-service/src/main/resources/docker-compose.yml Outdated
Comment thread notebook-migration-service/src/main/resources/docker-compose.yml
Comment thread notebook-migration-service/src/main/resources/custom.js
Comment thread notebook-migration-service/src/main/resources/custom.js
@zyratlo zyratlo force-pushed the migration-tool-jupyter-docker branch from f0f9d28 to f0c1624 Compare June 16, 2026 20:54
@zyratlo zyratlo requested a review from mengw15 June 16, 2026 21:11

@mengw15 mengw15 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@mengw15 mengw15 added this pull request to the merge queue Jun 16, 2026
Merged via the queue into apache:main with commit b2d216a Jun 17, 2026
15 checks passed
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
…igration tool (apache#5256)

### What changes were proposed in this PR?
Introduces the local JupyterLab docker that the upcoming
notebook-migration microservice will talk to. Three files are added
under `notebook-migration-service/src/main/resources/`:

- **`Dockerfile`** — `FROM jupyter/base-notebook:notebook-6.5.4`;
`COPY`s `custom.js` into `/home/jovyan/.jupyter/custom/custom.js` and
fixes ownership.
- **`docker-compose.yml`** — runs JupyterLab as `texera-jupyter` on host
port `9100`. Token/password auth disabled, XSRF check disabled, CSP set
to allow `frame-ancestors http://localhost:*` so Texera can embed it in
an iframe. Default URL is
   `/tree`.
- **`custom.js`** — JupyterLab iframe customization. Posts `cellClicked`
messages (with cell UUID) to `window.parent` and listens for
`triggerCellClick` to scroll/highlight target cells.


### Any related issues, documentation, discussions?
Closes apache#5255 
Parent-issue apache#4301 


### How was this PR tested?
Verified locally that the stack comes up cleanly and Jupyter is
reachable.


### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 4.7)
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.

[Notebook Migration] Add JupyterLab docker for notebook migration tool

2 participants