ehofesmann / edit_label_attributes

Edit attributes of selected labels in the FiftyOne App
1 stars 1 forks source link

Reloading with updated labels #2

Open mattias-pp opened 2 months ago

mattias-pp commented 2 months ago

Hi there!

First of all, this is really useful, great work! I was wondering if you have any ideas on how to update the visualization to show the updated labels after pressing 'Execute'.

Currently the updates are only shown after reloading the page. Using ctx.trigger("reload_dataset") in execute also works, but reloading the entire dataset after every change is quite annoying, and more importantly also resets your view, so you have to navigate back to where you left off.

ehofesmann commented 1 month ago

Hey @mattias-pp ! Thank you! This is actually an open issue in fiftyone that we have some tickets for. At the moment, there isn't a great way to reload just the contents of the sample that you have open in the modal. In the near future, there will be a way to link directly to a sample and have it open a modal, so a potential option at that point would be to reload the dataset and then have it reopen the sample you were looking at. It's still not ideal since the screen would refresh, but could be a potential workaround until we're able to update just the sample itself.