
I would like to do something similar to this:
def upload_h5_to_server(attr, old, new):
filename = write_temp_file(file_input.value)
curdoc().add_root(ExtendedView(sync.Sync(filename)).layout)
file_input = FileInput(align='end', accept='.h5')
file_input.on_change('value', upload_h5_to_server)
curdoc().add_root(file_input)
curdoc().title = "SyncViewer"
Unfortunately, when upload_h5_to_server is called via callback, this update (at least visually) doesn’t occur. If I call it manually, it will update as expected but I assume this is b/c no session has been setup yet.
Is there a proper technique for this?

