molsysviewer.new_view#
- molsysviewer.new_view(molecular_system, selection='all', structure_indices='all', *, debug_js=None, view=None)[source]#
Create and return a MolSysView, optionally loading a molecular system.
This is a convenience factory. It instantiates a MolSysView (unless one is provided via
view), callsview.load(...)with the given inputs, and returns the view.- Parameters:
molecular_system (Any)
selection (str | Sequence[int])
structure_indices (str | Sequence[int])
debug_js (bool | None)
view (MolSysView | None)
- Return type: