Open tony opened 8 years ago
No, sorry. Right now, there is no proof of concept of this... I keep this issue open as a reminder for when I'm going to create more examples.
@tony: Are you inquiring only about displaying tabular data -- or about displaying an editable data table -- using prompt_toolkit
? (Just curious...)
displaying
Even I want something like this for one of my side project. I'll share the code if I complete this piece.
@swapniljariwala, if you want to try. Start from the prompt_toolkit 2.0 branch. (that should be easier and will be released soon.) I think you have to implement a custom FormattedTextControl with custom key bindings. The scrolling can be done by wrapping it in a Window.
Would https://github.com/nirum/tableprint cover your use case?
you can use https://rich.readthedocs.io/en/stable/tables.html
With a fix set of columns / dynamic number of rows, is there any proof of concepts out there for handling a tabular data?