S
Solara6d ago
creon

Scrollable, updatable text (log file monitor) widget.

I wish there was a way in Solara to create a multi-line text output box widget where my code could append messages to it and it would autoscroll to the bottom (latest appended message) but keep a long history which I can scroll back through and look at. For instance for monitoring a log file while an application is running in the background. Has anybody written such a thing?
1 Reply
MaartenBreddels
We have a similar issue with chatbox, although it's possible to do it with JS, there is a CSS trick you can use. See https://github.com/widgetti/solara/blob/master/solara/lab/components/chat.py to check it out (it's in the comments). I'm not 100% sure this will work for you, let me know!
GitHub
solara/solara/lab/components/chat.py at master · widgetti/solara
A Pure Python, React-style Framework for Scaling Your Jupyter and Web Apps - widgetti/solara

Did you find this page helpful?