Some additional modularizing and caching of the text lengths widget
335424f
meg-huggingfacecommited on
Modularization and caching of text length widget
85cf91c
meg-huggingfacecommited on
Removes extraneous debugging print statements
6a9c993
meg-huggingfacecommited on
Missing a dependency; adding to requirements.txt
6557527
meg-huggingfacecommited on
Begins modularizing so that each widget can be independently loaded without having a requirement on the ordering of load_or_preparing in app.py. This means that each function corresponding to a widget will check if the variables it depends on have been calculated yet. If not, it will call back to calculate them. Because of the messiness this causes with passing the use_cache variable around, I've now set use_cache as a global variable, set when the DatasetStatisticsCacheClass is initialized, and removed the use_cache arguments appearing in nearly every function.
4b53042
meg-huggingfacecommited on
Removing need to keep around base dset for the header widget; now just saving what is shown -- the first n lines of the base dataset -- as a json, and loading if it's cached.