ipyvuetify

1.11.3 · active · verified Wed Apr 15

ipyvuetify is a Python library that provides Jupyter widgets based on Vuetify UI components, implementing Google's Material Design specification with the Vue.js framework. It allows users to build modern, interactive graphical user interfaces directly within Jupyter notebooks (classic and Lab) and dashboards (Voila). The library is currently at version 1.11.3, with an experimental alpha branch for 3.x, and aims to offer a richer set of customizable and composable widgets compared to standard ipywidgets.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates creating a button and a text field, attaching an event listener to the button, and updating the text field's value using the `v_model` attribute. It showcases basic widget creation, event handling, and displaying components in a Jupyter environment.

import ipyvuetify as v
from IPython.display import display

# Create a text field to display messages
message_output = v.TextField(label="Message", readonly=True, v_model="Click the button!")

# Define a callback function for the button click
def on_button_click(widget, event, data):
    message_output.v_model = "Button was clicked!"

# Create a button and attach the event listener
button = v.Btn(children=["Click Me"])
button.on_event('click', on_button_click)

# Display the widgets within a container
display(v.Container(children=[button, message_output]))

view raw JSON →