ipyμvue
Reactive Vue 3 widgets for the Jupyter notebook in Python.
Installation
pip install ipymuvue
Getting Started
There is no proper documentation for this project yet, but there are some examples/.
To verify that your installation works correctly, open a Jupyter notebook and execute the following example:
from ipymuvue.widgets import VueWidget
from traitlets import Unicode
class Widget(VueWidget):
def __init__(self):
super().__init__(template=r"""
<div>
<h1 @click="audience += '!'" @click.right.prevent.stop="rclick()" style="border: solid 1px blue; text-align: center; padding: 20px; user-select: none">
Hello {{ audience }}!
</h1>
</div>
""")
audience = Unicode("World").tag(sync=True)
@VueWidget.callback
def rclick(self):
self.audience = '¡' + self.audience
widget = Widget()
widget
If you see a Hello World message, then things have been setup correctly.
Note that the classic Jupyter notebook (i.e., version <7) is not supported by this extension. If in doubt, use jupyter lab to launch your notebooks.
Development
Get a local copy of this package:
git clone https://github.com/flatsurf/ipymuvue.git
cd ipymuvue
We use pixi to manage all the dependencies needed for
development, including node. Once you have installed pixi, start
JupyterLab with a development version of ipymuvue in the examples/ directory:
pixi run lab
Some examples, such as the graph editor, need a SageMath kernel. Use pixi run -e sage lab for these.
Any changes you make to the Python code should be picked up automatically. Changes to ipymuvue.pyodide become effective by re-creating a widget (all the modules are reloaded in pyodide when a change to these files happens.) Other changes require a kernel restart as usual.
The frontend is written in TypeScript in ts/src/. To rebuild it
automatically whenever you change a file, run in another terminal:
pixi run watch
Changes become effective once the rebuild has finished and you refresh the
page in the browser. (To build the frontend once, run pixi run build-js.)
To run the unit tests and the end-to-end tests (which run the widgets in JupyterLab in a headless browser), run:
pixi run test
pixi run test-e2e
To see what the end-to-end tests are doing, run pixi run test-e2e --headed --slowmo 500. Note that playwright might need some extra system libraries to
run the browser; on Debian and Ubuntu, pixi run playwright install-deps chromium installs them.
We check the Python code with ruff and the TypeScript code with ESLint and Prettier:
pixi run lint
To format all the code as these tools expect it, run pixi run format.
To run these checks automatically before each commit, run pixi run pre-commit install.
To build the wheel and source distribution of ipymuvue, run:
pixi run build
Changelog
Every pull request that changes something users of ipymuvue might care about
should add a file to news/ describing the change. The name of the file is
<some-name>.<category>.rst where the category is one of added, changed,
removed, or fixed, e.g., news/slots.fixed.rst:
Fixed replacing the widget in a slot with `VueWidget.slot()`.
These files are collected into the ChangeLog when making a release. To see
what the next entry in the ChangeLog is going to look like, run pixi run -e release towncrier build --draft --version next.
Releasing
pixi run release-prepare 1.2.3
git commit -m 'Release 1.2.3'
git push origin master
git push origin 1.2.3
Related Projects
- ipyvue heavily inspired this package; ipyvue builds on Vue 2, it does not ship a full SFC compiler, it does not have support for external packages and it does not support defining components that completely run on the client. However, it has quite some extra features for the actual widget such as allowing replacement of templates, attaching to lifecycle hooks, defining
<style>blocks, …
Metadata
Release files for ipymuvue 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ipymuvue-0.7.0.tar.gz | 914.8 kB | With provenance | Details for ipymuvue-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ipymuvue-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for ipymuvue-0.7.0-py3-none-any.whl |
Total release size: 1.5 MB
Release files / ipymuvue-0.7.0.tar.gz
| Download URL | ipymuvue-0.7.0.tar.gz |
|---|---|
| Size | 914.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b35f3d3b16cc67da2331162e7c3cb5b62e53b590072742a218ba55f87f0a67f3
|
|
BLAKE2b-256 checksum How to use checksums |
4e2f5fb9ff93166a944e926f8fb50c2ae03a9b0cd782a8ab7a821ba4b085a207
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 10, 2026.
Transparency logRelease files / ipymuvue-0.7.0-py3-none-any.whl
| Download URL | ipymuvue-0.7.0-py3-none-any.whl |
|---|---|
| Size | 632.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a7efad876b52ffee5851e2c30e08381e05351d40ff18b516791e49e999816ea
|
|
BLAKE2b-256 checksum How to use checksums |
3070a6d2a11b667b5a0e978706914ce6d60c63be6531e8591ebcbcacf9492256
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 10, 2026.
Transparency logSecurity for ipymuvue 0.7.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ipymuvue-0.7.0.tar.gz
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 Nov 10, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.