Skip to content

Conversation

@Chenzo1001
Copy link
Contributor

@Chenzo1001 Chenzo1001 commented Jun 23, 2025

Summary
This PR enables the apache-beam-jupyterlab-sidepanel JupyterLab extension to be installed via pip directly, without requiring the use of jupyter labextension install. Fixing the issue #35397

This makes the extension fully compatible with the JupyterLab prebuilt extension system, improves ease of use, and aligns with the packaging approaches adopted by other JupyterLab 4.x-compatible projects.

Changes

  • Introduced pyproject.toml based on PEP 621 and hatchling.
  • Added hatch-jupyter-builder for handling JS asset bundling.
  • Configured shared-data installation of labextension files into share/jupyter/labextensions/apache-beam-jupyterlab-sidepanel.
  • Ensured compatibility with JupyterLab 4.x via jupyterlab and hatchling constraints.
  • Updated .gitignore and README.md to reflect new packaging steps.

Packaging Example

pip install apache-beam-jupyterlab-sidepanel

After installation, the extension is automatically available in JupyterLab — no jupyter labextension install step required.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@github-actions
Copy link
Contributor

Assigning reviewers:

R: @jrmccluskey for label python.

Note: If you would like to opt out of this review, comment assign to next reviewer.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@liferoad
Copy link
Contributor

Please fix the failed workflows.

Copy link
Contributor

@jrmccluskey jrmccluskey left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@jrmccluskey
Copy link
Contributor

I'll hold off on merging until your requested reviewer takes a look.

@Chenzo1001
Copy link
Contributor Author

I'll hold off on merging until your requested reviewer takes a look.

Thank you! I think it can be merged now😁

@Chenzo1001
Copy link
Contributor Author

@liferoad @jrmccluskey

@liferoad
Copy link
Contributor

Next step to release this to pypi?

@Chenzo1001
Copy link
Contributor Author

Chenzo1001 commented Jun 25, 2025

Next step to release this to pypi?

Now I've released the package on PyPI: https://pypi.org/project/apache-beam-jupyterlab-sidepanel/

@liferoad liferoad merged commit cb5eef5 into apache:master Jun 25, 2025
92 checks passed
shunping pushed a commit to shunping/beam that referenced this pull request Jun 27, 2025
…xtension (apache#35399)

* Add pip installation

* update CHANGES.md

* Add license

* update format

* Fix whitspace problem

* Fix isort problem

* update ignore rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants