In [1]:
import os,sys
sys.path.insert(0, os.path.abspath('..'))
from hublib.ui import FileUpload, Download
In [2]:
Download('wire.data')
In [3]:
Download('wire.data', style='info')
In [6]:
Download('wire.data', style='success', icon='fa-arrow-circle-down')
In [7]:
Download('wire.data', style='warning', icon='fa-cloud-download', tooltip='DOWNLOAD FILE')
In [8]:
Download('wire.data', label='Download', icon='fa-download', tooltip='DOWNLOAD FILE')
In [9]:
# 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])