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

A problem when running html result #1115

Closed
lvs0622 opened this issue Jul 22, 2024 · 2 comments
Closed

A problem when running html result #1115

lvs0622 opened this issue Jul 22, 2024 · 2 comments
Labels

Comments

@lvs0622
Copy link

lvs0622 commented Jul 22, 2024

image

The result of my visualization on jupyter notebook is that I can play dynamic motion views, however, when I open the html file with nv.write_html, the image becomes static.
image

(the html file)
image
Nothing happens to the image when I press the play button.

@hainm hainm added the bug label Jul 22, 2024
@hainm
Copy link
Collaborator

hainm commented Jul 22, 2024

Thanks @lvs0622 for reporting.

@hainm
Copy link
Collaborator

hainm commented Nov 28, 2024

wow, it turns out user has to explicitly provide frame_range args.
nglview doesn't want to write all frames since the data might be big.

nv.write_html('index.html', view, frame_range=(0, 4))

@hainm hainm closed this as completed Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants