nglview.scripts package

Submodules

nglview.scripts.app module

class nglview.scripts.app.NGLViewApp(*args, **kwargs)[source]

Bases: notebook.notebookapp.NotebookApp

get_port(port=None)[source]

nglview.scripts.cmd_example module

nglview.scripts.nglview module

nglview.scripts.nglview.get_remote_port(port=None, notebook_path='')[source]
nglview.scripts.nglview.main(notebook_dict={'cells': [{'cell_type': 'code', 'execution_count': 'null', 'metadata': {'collapsed': True}, 'outputs': [], 'source': ['import nglview as nv\n', 'import pytraj as pt\n', '\n', "traj = pt.iterload('test.nc', top='prmtop')\n", 'view = nv.show_pytraj(traj)\n', 'view']}], 'metadata': {'kernelspec': {'display_name': 'Python 3', 'language': 'python', 'name': 'python3'}, 'language_info': {'codemirror_mode': {'name': 'ipython', 'version': 3}, 'file_extension': '.py', 'mimetype': 'text/x-python', 'name': 'python', 'nbconvert_exporter': 'python', 'pygments_lexer': 'ipython', 'version': '3.5.1'}}, 'nbformat': 4, 'nbformat_minor': 0}, cmd=None)[source]

Module contents