I have data stored in AWS S3 and I would like change & save these data, then re-load the saved object so that updated data are reflected back into my notebook. To trigger this event, I have a button.
According to a discussion on StackOverflow, I should be able to trigger multiple button events on click as such:
onclick="${change_data};${reload_object};" // not my real cell names, but indicative of the task
When I try this, however, the notebook doesn’t seem to re-load my data, and the addition of the second action seems to break the button’s functionality (that is, the button works as expected with the first parameter only, but doesn’t do anything with the addition of the second parameter).
Playing around, I think part of the issue that I’m facing is that trying to re-run a cell using the buttononly ‘sorta’ produces my desired effect: the button click will run the content a cell as written, but will not re-run the cell itself.
I would appreciate any pointers on how to accomplish the following:
- link two actions to a button click
- ensure that the second action always executes after the first
- re-run a cell as part of the a button action (to refresh stored data)
Also problematic: Running my ‘load data’ cell also triggers Observable into re-evaluating and re-running my ‘create new record’ cell, which has the effect of adding a new record each time data are loaded. [Yikes! Always so many hurdles.]
Here’s my notebook to better inform this question:
Any and all guidance and insight are welcome and appreciated!