-
Notifications
You must be signed in to change notification settings - Fork 34
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
Changing active molecule from within API #244
Comments
Hi Joe, I think @Luthaf is much more likely to be able to help. If you succeed in this, it would be really cool to also expose this functionality for the jupyter widget. There is already the possibility of changing the visualizer settings with a traitlet-style mechanism, I think that being able to set the active point would open up some interesting use cases. |
So |
Ahh I see, yeah I've given the |
|
Excellent, thank you! |
Hi all,
I'm just having a first play around with chemiscope so apologies if there is a very simple answer I'm missing. I've currently got the library running through Flask and I'm trying to find a way to use the API to change the selected molecule in the
EnvironmentInfo
, thePropertiesMap
and theViewersGrid
simultaneously, such that the server can say "now show structure no. 24" and it can push that to the client.I've got this working already for the
EnvironmentInfo
andViewersGrid
by directly firing theDefaultVisualizer.map.onselect()
callback with the structure ID I want to change to, but this doesn't update the active point inPropertiesMap
. From what I can tell, I want to be usingDefaultVisualizer.map.activeChanged()
to do this all in one, but that requires a GUID as well as a structure ID.Is this the correct way to go about this? If so, how do I find the GUID of the point within the Plotly plot to change to? I've been combing through the source code but so far haven't figured out how GUIDs are mapped to their respective points.
Thanks in advance,
Joe
The text was updated successfully, but these errors were encountered: