Advanced Example
This example demonstrates a more complex Gradio application with multiple interactive components, callbacks, and data analysis running on nanoHUB.
Interactive Data Analysis Dashboard
This example creates an advanced data analysis dashboard with:
Multiple analysis views using tabs
Interactive component callbacks
Real-time data visualization
Statistical analysis (correlation, regression)
Dataframe inspection
Setup
%load_ext nanohubgradio
%set_gradio_env
Key Advanced Features
CheckboxGroup for Multi-Select
features = gr.CheckboxGroup(
choices=['feature_1', 'feature_2', 'feature_3'],
value=['feature_1'],
label="Select Features"
)
Allows users to select multiple options with checkboxes.
- **Slider for Numeric Input***Slider for Numeric Input***Slider for Numeric Input***Slider for Numeric Input***Slider for Numeric ue**Sli step=1,
label=”Nu label=”Nu label=”Nu label=”Nu label=”Nu label=”Nu label=”Nu label=”Nu label=”Nu label=”Nu le label=”Nu label=”Nuple_df, interactive=False,
table co ch ion_that_r _comp s=[ output2, output3]
)
Functions can return multipleFunctions can ate muFunctions can returnRuFunctions can returnlesFunctions can return multipleFun a JFunctions can return ad Functions can return multihe envFunctions can return multipleFunctions can ate muFunctcrFunctions can return mued_exFunctions can return multode-block:: Functions can return multipleFunctions can ate muFunctid will automatically include:
Header bar with nanoHUB branding
Support and terminate buttons
Responsive layout for all screen sizes