I have an ipywidget based extension, buckaroo, that does a really good job of rendering tabular data. I’m trying to figure out if it would feasible to use the same components to render CSVs, replacing the built in jupyter csv renderer. For this to work I need to figure out a couple of things
- Register my extension in place of the default csv renderer.
- Call python code to talk to my widget. As I have built buckaroo, it isn’t too dependent on ipywidgets, I could deliver a static payload once. But I need to run python code to generate that payload.
The existing csv viewer only has typescript code. jupyterlab/packages/csvviewer/src/widget.ts at 090fe7383422b59588f0337fe0b5ee0d74899204 · jupyterlab/jupyterlab · GitHub
Is it possible to register a python side mime handler to do what i’m describing?