Skip to main content

Test ipywidgets with playwright and pytest.

Installation

pip install "pytest-ipywidgets[all]"

(Note that the optional [all] installs all dependencies, including compatible versions of notebook, jupyterlab and voila.)

Usage

Using solara-server (in-process)

If you want to test your ipywidgets with playwright in-process, you can use the solara_test fixture, use display to show your widget in the browser.

import ipywidgets as widgets
import playwright.sync_api
from IPython.display import display

def test_widget_button_solara(solara_test, page_session: playwright.sync_api.Page):
    # this all runs in-process
    button = widgets.Button(description="Click Me!")

    def change_description(obj):
        button.description = "Tested event"

    button.on_click(change_description)
    display(button)
    button_sel = page_session.locator("text=Click Me!")
    button_sel.wait_for()
    button_sel.click()
    page_session.locator("text=Tested event").wait_for()

Testing in the main Jupyter Environments (Notebook, Lab, Voila & Solara)

See https://solara.dev/documentation/advanced/howto/testing for more information.

Metadata

Release files for pytest-ipywidgets 1.64.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-ipywidgets 1.64.0
File Size Uploaded
pytest_ipywidgets-1.64.0.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-ipywidgets 1.64.0
File Interpreter ABI Platform
pytest_ipywidgets-1.64.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / pytest_ipywidgets-1.64.0.tar.gz

Download URL pytest_ipywidgets-1.64.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7e8856236bf13248d76efbc327218c1b770dfae8659f8304702344f31122fe83
BLAKE2b-256 checksum
How to use checksums
f277c0a855d5795408c68b7bc21c4cadfe185fdb5b57e1b0277bb9b605ffb05b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / pytest_ipywidgets-1.64.0-py3-none-any.whl

Download URL pytest_ipywidgets-1.64.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0d0a93dd5e674f7bbe01410318f229e88a37f8247042bebd70bdf5ff4ddec6a
BLAKE2b-256 checksum
How to use checksums
dd0b4f3c2a29642e44e33d36aefc23c5bd1ae7f2c4057e25c75f629e5a57d521
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.64.0 This release

2 release files

1.62.1

2 release files

1.62.0

2 release files

1.60.3

2 release files

1.57.6

2 release files

1.57.5

2 release files

1.57.4

2 release files

1.57.3

2 release files

1.57.1

2 release files

1.57.0

2 release files

1.56.0

2 release files

1.54.0

2 release files

1.53.0

2 release files

1.52.0

2 release files

1.51.1

2 release files

1.50.1

2 release files

1.49.0

2 release files

1.48.0

2 release files

1.47.0

2 release files

1.46.0

2 release files

1.45.0

2 release files

1.44.1

2 release files

1.44.0

2 release files

1.43.0

2 release files

1.41.0

2 release files

1.40.0

2 release files

1.39.0

2 release files

1.38.0

2 release files

1.37.2

2 release files

1.36.0

2 release files

1.35.1

2 release files

1.35.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page