Lachlan
Lachlan3w ago

Reacting to external changes

Is it possible to make a notebook react to external changes? I would like to have a notebook that shows the status of an experiment and displays some analysis, but then to update it as the dataset changes. I don't mind if I have to write some code that runs in the background and notifies the notebook that a cell needs to be re-computed.
3 Replies
Lachlan
LachlanOP3w ago
I know that there's ui.refresh, but it would be nice to be able to do it without polling when that's possible.
Myles Scolnick
We have thought about adding contents = mo.filename('path/to/file') which will watch and refresh with updates (currently in a old branch of mine). we don't have this yet, and ui.refresh might be your best bet at the moment.
Lachlan
LachlanOP2w ago
Thanks! (and sorry to take so long to reply)