<jupyter_start><jupyter_text>Render vue components inline<jupyter_code>import ipyvuetify as v
from ipyvuetify.extra import FileInput
import traitlets
import ipywidgets as widgets
# Declare variables
files=[]
image_upload = FileInput()

submit_button = v.Btn(children=['Upload Images'])

out = widgets.Output()

def upload_images(widget, event, data):
    global files
    files = image_upload.get_files()[0]
    data = files['file_obj'].read()
    
    wid_builtin = widgets.Image(value=data)
    wid_builtin
    
submit_button.on_event('click', upload_images)
v.Container(children=[
    image_upload,
    submit_button,
])
image_gallery = v.Container(children=[
    v.Btn(children=[
        v.Html(
            tag='img',
            attributes={
                'src': files[i]
            },
        )
    ]) for i in files
])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1140861466821886, 'fraction_numerical': 0.0011641443538998836, 'mean_word_length': 3.3434343434343434, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '86318', 'license': 'MIT', 'n_tokens_mistral': 282, 'n_tokens_neox': 278, 'n_words': 58, 'path': 'src/notebooks/inline-vue-components.ipynb', 'repo_name': 'Francesco-Sch/docker-jupyter-extensible', 'size': '859'}