No summary available
Project Links
Meta
Author: Maarten A. Breddels
Requires Python: >=3.8
Classifiers
License
- OSI Approved :: MIT License
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.
1.57.3
Feb 24, 2026
1.57.2
Feb 03, 2026
1.57.1
Jan 21, 2026
1.57.0
Jan 20, 2026
1.56.0
Dec 22, 2025
1.55.1
Dec 05, 2025
1.55.0
Dec 01, 2025
1.54.0
Oct 24, 2025
1.53.0
Oct 23, 2025
1.52.0
Oct 17, 2025
1.51.1
Aug 20, 2025
1.51.0
Aug 05, 2025
1.50.1
Jul 15, 2025
1.50.0
Jul 04, 2025
1.49.0
Jun 19, 2025
1.48.0
May 30, 2025
1.47.0
Apr 30, 2025
1.46.0
Apr 25, 2025
1.45.0
Apr 15, 2025
1.44.1
Feb 18, 2025
1.44.0
Jan 29, 2025
1.43.0
Dec 19, 2024
1.42.0
Dec 04, 2024
1.41.0
Oct 28, 2024
1.40.0
Oct 15, 2024
1.39.0
Aug 30, 2024
1.38.0
Aug 28, 2024
1.37.2
Aug 21, 2024
1.37.1
Aug 02, 2024
1.37.0
Aug 01, 2024
1.36.0
Jul 23, 2024
1.35.1
Jul 11, 2024
1.35.0
Jul 10, 2024
1.34.1
Jul 05, 2024
1.34.0
Jul 03, 2024
1.33.0
Jun 06, 2024
1.32.2
Jun 05, 2024
1.32.1
Jun 05, 2024
1.32.0
Jun 05, 2024
1.31.0
Apr 08, 2024
1.30.1
Jun 05, 2024
Wheel compatibility matrix
Files in release
Extras:
Dependencies:
pillow
pixelmatch
playwright
pytest
pytest-playwright
solara-server[starlette]
(==1.57.3)
solara-ui
(==1.57.3)