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

Rokas slider #1

Merged
merged 2 commits into from
Feb 27, 2022
Merged

Rokas slider #1

merged 2 commits into from
Feb 27, 2022

Conversation

RokasEl
Copy link
Contributor

@RokasEl RokasEl commented Feb 12, 2022

Implemented support for specifying multiple smiles in the smiles_col argument for molplotly.add_molecules:

  • When a single str argument is passed to smiles_col, the function behaves as before.
  • When a list is passed, a slider is created under the plot, which allows the user to decide which column to use to render molecules.

Also changed the ports in the example.ipynb to start from 8700 and go up. On my system 8000 and 8001 were reserverd already.

created an example how the multiple columns work,
added gif to readme
@wjm41
Copy link
Owner

wjm41 commented Feb 15, 2022

Maybe use a drop-down menu instead? That way you can choose multiple options at once and it should be possible to show multiple images in the same hoverbox (though it might not be a good idea :P)

See here, should be a small change to your addition
https://dash.plotly.com/dash-core-components/dropdown

@wjm41 wjm41 merged commit d67b646 into wjm41:main Feb 27, 2022
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

Successfully merging this pull request may close these issues.

2 participants