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

Trouble displaying system with NGLview #894

Closed
gnserafim opened this issue Apr 23, 2020 · 11 comments
Closed

Trouble displaying system with NGLview #894

gnserafim opened this issue Apr 23, 2020 · 11 comments

Comments

@gnserafim
Copy link

Hi,

I'm current working with a system around 600k atoms and I have trouble visualizing not only the entire sytem but even a small part of it (AtomGroup of 12k atoms).

I followed what was on issue #633 and set NotebookApp.iopub_data_rate_limit as proposed (and even higher) but it didn't work.

Any ideas how to solve this?

As reference, below are the version been used:
jupyterlab 1.2.3
nglview 2.7.5
nglview-js-widgets 2.7.5
jupyterlab-manager 1.1.0

Installation done by pip or jupyter labextensions.

@hainm
Copy link
Collaborator

hainm commented Apr 23, 2020

it didn't work.

Please elaborate.

@gnserafim
Copy link
Author

Hai,

I set NotebookApp.iopub_data_rate_limit = 10000000 when starting jupyter lab, but nv.show_mdanalysis() doesn't display my system (despite loading the trajectory scroll bar).

imagem

If I select a small part o the system, I'm able to get an output (first image), but if I my atom group is larger than 10k atoms nglview will not display it (second image).

imagem

imagem

My question is if there is a way to visualize larger systems with nglview and how, or if it has a limit that forbid working large system with this tool

Thanks,

@hainm
Copy link
Collaborator

hainm commented Apr 24, 2020

Thanks for your detail report. What does the terminal (where you launch the notebook) say?

@gnserafim
Copy link
Author

Hey Hai,

When I launch the notebook, the below output appears at my terminal:

imagem

I don't know if this is relevantor not, but due to quarentine reasons, I'm accessing my work's computer via ssh from my personal laptop

@hainm
Copy link
Collaborator

hainm commented Apr 24, 2020

thanks. I meant after you running your code, what does the terminal say?

Additionally, does it work in traditional notebook?

@gnserafim
Copy link
Author

thanks. I meant after you running your code, what does the terminal say?

So, this is the last call of the terminal, even after running the cell of the notebook

Additionally, does it work in traditional notebook?

Yes. The same thing happens

@hainm
Copy link
Collaborator

hainm commented Apr 24, 2020

uhm, do you mind sharing your file (pdb) or a toy model so I can play with it?

@gnserafim
Copy link
Author

Let me know if you need anything else :)

test.zip

@hainm
Copy link
Collaborator

hainm commented Apr 27, 2020

hi @gnserafim

nglview is actually able to show your system but you need to properly center it.
(I guess nglview is not robust in this case).

Screen Shot 2020-04-27 at 2 08 51 PM

@gnserafim
Copy link
Author

Hey @hainm

First, sorry about not replaying you early. Busy week

Thank you for the solution found! I was able to visualize my system centering it the way you did it :)

One more question: your solution only worked in a notebook created through notebook and not through jupyter lab. Any idea why?

@hainm
Copy link
Collaborator

hainm commented May 4, 2020

One more question: your solution only worked in a notebook created through notebook and not through jupyter lab. Any idea why?

@gnserafim I am not sure why. Does nglview work in your lab notebook at all (nglview.demo())

@hainm hainm closed this as completed Oct 21, 2020
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