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

NGL won't display solvated system if loading from blob #355

Closed
hainm opened this issue Jul 21, 2017 · 5 comments
Closed

NGL won't display solvated system if loading from blob #355

hainm opened this issue Jul 21, 2017 · 5 comments

Comments

@hainm
Copy link
Contributor

hainm commented Jul 21, 2017

Please check here:

nglviewer/nglview#633 (comment)

@arose
Copy link
Collaborator

arose commented Jul 22, 2017

Can't reproduce so far. The following way of loading from a blob works for me

var url = 'https://path/to/smol.pdb'
fetch(url).then(function(response) {
  return response.blob();
}).then(function(blob) {
  NGL.autoLoad(blob, {ext: 'pdb'}).then(function (structure) {
    var o = stage.addComponentFromObject(structure)
    stage.defaultFileRepresentation(o)
  })
});

screenshot 10

@hainm
Copy link
Contributor Author

hainm commented Jul 22, 2017

Have you tried

stage.loadFile yet?

@arose
Copy link
Collaborator

arose commented Jul 23, 2017

stage.loadFile yet?

yes, that works fine

@hainm
Copy link
Contributor Author

hainm commented Jul 23, 2017

uhm, I see why now. The new notebook (v5) won't allow to send big chunk of data to front-end.
damn. Not sure what we should do now.

[I 23:30:42.996 NotebookApp] Adapting to protocol v5.1 for kernel a100ee13-f7eb-4e2a-9bbe-e400bdcfd828
[W 23:31:10.938 NotebookApp] IOPub data rate exceeded.
    The notebook server will temporarily stop sending output
    to the client in order to avoid crashing it.
    To change this limit, set the config variable
    `--NotebookApp.iopub_data_rate_limit`.

@hainm
Copy link
Contributor Author

hainm commented Jul 23, 2017

notebook v5.0 issue.

@hainm hainm closed this as completed Jul 23, 2017
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