<jupyter_start><jupyter_text>Download Widget<jupyter_code>import os,sys
sys.path.insert(0, os.path.abspath('..'))
from hublib.ui import FileUpload, Download
Download('wire.data')
Download('wire.data', style='info')
Download('wire.data', style='success', icon='fa-arrow-circle-down')
Download('wire.data', style='warning', icon='fa-cloud-download', tooltip='DOWNLOAD FILE')
Download('wire.data', label='Download', icon='fa-download', tooltip='DOWNLOAD FILE')
# ipywidget compatibility

from ipywidgets import HBox

d1 = Download('wire.data', style='success', icon='fa-arrow-circle-down')
d2 = Download('wire.data', label='Download', icon='fa-download', tooltip='DOWNLOAD FILE')

HBox([d1.w, d2.w])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1887052341597796, 'fraction_numerical': 0.006887052341597796, 'mean_word_length': 8.56578947368421, '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': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '526441', 'license': 'MIT', 'n_tokens_mistral': 244, 'n_tokens_neox': 244, 'n_words': 44, 'path': 'examples/download.ipynb', 'repo_name': 'martin-hunt/hublib', 'size': '726'}