Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
display ID registration prep, formatter registration fixes, index upd…
…ates, dtype handlers, expanded data generators (#16) * add random dataframe generator for convenience * add logging for renderables * more callout options; set display ID * update black/flake8 configs * version bump; add pyarrow * register display ID; update black configs * caffeine fever dream that needs a lot of cleanup later once prototyping is done * add success! * logging/callout updates * callout update * flatten multiindex series better; pass metadata in ipydisplay * add settings.LOG_LEVEL; fix stringify columns * version bump; add helper for generating random dataframe * rename "default" display mode to "plain" * add More Info user help section after truncating dataframe * ensure temporary dx.display calls revert properly * hotfix * remove old code * remove cell_id tracking * add poetry.toml * add loggers * fix bug with .sample() resetting index * cleanup * don't mess with the original dataframe object during registration * remove structlog; update loggers * SQL instead of parquet/pyarrow * more attempts at fixing column dtype wrangling * move filtering out of main formatter * check for dataframe subset associations before display ID registration * push-down filter override for max display rows * fix set_option reference * add comms config * add geopandas as extra install * move utils out of formatters dir * handle circular imports; add subset filter tracking; extra logging * separate sampling from utils * remove column handling from sampling * add convenience function for adding renderable * fix reference for testing * handle missing key * fix ref * disable re-rendering for updates; pass applied filters to frontend * pull filters from comm msg * fix subset filter tracking; update logging * update to default random sampling * allow passing ipython shell for registering/getting display IDs * pass new display id into sampling if needed * update applied_filters assignment * add settings_context; switch renderables to Set instead of List * move sampling tests to their own file * add renderables test * remove truncating/sampling tests, fix custom index test * assign unique name for unassigned variable tracking * check setting before index resets * flake8 * adjust pandas options for display/schema changes * add structlog back in * pull display ID registration out of get_display_id(); update logging * update display mode with settings_context; add log level changes * pass index flag to dataframe_info metadata; update logging * updates for logging * use settings_context; don't display callout with unassigned dataframe; parse df_name for .query() * use update_display for user query * remove hyphens from df uuid to enable sqlite filtering * add top margin * update logging; handle display ID register after rendering; update user query callout * fix index and column stringifcation for multiindexing * more docstrings * clean up settings * add pandas option transfer on row/column validation * add flatten_index; handle index/column flattening behind settings * add docstring * don't reset multiindex level names * more explicit multiindex handling * add media type prefixes back to settings so env vars don't overwrite them all * check for custom index before normalizing * ugh multiindex. * remove import * fix log message * update .gitignore * break apart utils/helpers into more readable structure to handle new datatype generation, testing, and cleaning * remove helpers * remove function imports * store datetime string format * move geopandas check out of config * add faker as extra * remove comment * handle flattening/expanding lists/sets/tuples * handle extra dtype cleaning * fix for mixed dtypes * updates for dtype generation and testing * change log time format * check default index earlier; don't generate hash over and over * add ENABLE_DATALINK setting to toggle off all the tracking/hashing/etc * remove get_applied_filters * separate cleaning functions between build_table_schema/hash_pandas_object/store_in_sqlite * fix cleaning; remove extra hashing calls; update docstrings * add geopandas and faker dev dependencies for dtype testing; add isort dev dep * make sure we can toggle datalink setting on/off without errors * generate display ID if not passed (datalink enabled) * clean columns before rendering with datalink disabled * update random_dataframe columns and testing * verbose unit testing in github workflow * handle no args, test for default data * enable datalink setting by default * use settings context * trigger html.table_schema pandas changes on settings changes * remove config.py * refactor display formatter registration * remove configs * remove configs * fix settings tests * fix registering tests * refactor dx media type formatter registration; remove configs * updates for testing to remove redundant mediatype nesting * more debug logging * remove flatten_index and fix index/column flattening logic * comms config behind datalink setting * bump up log level, disable datalink, be done with this PR * ugh patch this when datalink is disabled * disable logging auto-config so it doesn't start showing other loggers * fix log message * don't update other loggers levels to INFO * turn logging back on * changelog * this needs more work with the new display formatter registration
- Loading branch information