Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Plugin #117

Open
tugcekiziltepe opened this issue Feb 22, 2024 · 1 comment
Open

Custom Plugin #117

tugcekiziltepe opened this issue Feb 22, 2024 · 1 comment

Comments

@tugcekiziltepe
Copy link

I wanted to add a new plugin. in execute() function I select some samples. I want to show them when the operation is done. For this purpose in execute() function I added a line like this:

ctx.trigger("set_selected_samples", params=dict(samples=[ids]))

ids is a list of sample ids that have been selected. In the end, nothing happens. These samples cannot be shown to the user by using this operation on App. Do you have an idea what might be the problem?

@benjaminpkane
Copy link
Contributor

Hi @tugcekiziltepe. Pardon the delay. Perhaps there is a typo if ids is already a list? ctx.trigger("set_selected_samples", params=dict(samples=ids))

Also, Sselected samples refers to the selected session samples. I believe you could use the "set_view" trigger instead with dataset.select(ids)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants