Medical Data Visualizer - No file saved

Hi - Below is code. is showing a graph. But file is not saving in replit. Any ideas thanks?!

 gcat = sns.catplot(data = df_cat, x = 'variable', hue = 'value', col = 'cardio', kind = 'count')
    gcat.set_axis_labels('variable', 'total')
    fig = gcat.fig

    # Do not modify the next two lines
    return fig```

I’ve noticed my code does not get to the print ‘‘here’’…
    fig = gcat.fig```

While displays the plot it blocks further execution.

1 Like