core

class pyrosetta.distributed.viewer.core.Viewer(poses, pdbstrings, window_size, modules, delay, continuous_update, *args, **kwargs)

Bases: object

__init__(poses, pdbstrings, window_size, modules, delay, continuous_update, *args, **kwargs)
_clear_output()
_toggle_scrolling()
_toggle_window(_window_size)
add(other)

Add a module to the Viewer instance.

reinit()

Subtract all modules from the Viewer instance.

reset()

Delete Viewer instance attributes.

show()

Display Viewer in Jupyter notebook.

exception pyrosetta.distributed.viewer.core.ViewerInputError(obj)

Bases: Exception

Exception raised for errors with the input argument packed_and_poses_and_pdbs.

add_note()

Exception.add_note(note) – add a note to the exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

__init__(obj)
pyrosetta.distributed.viewer.core.init(packed_and_poses_and_pdbs=None, window_size=None, modules=None, delay=None, continuous_update=None, *args, **kwargs)

Initialize the Viewer object.

firstrequired

packed_and_poses_and_pdbs

PackedPose, Pose, or str of a valid path to a .pdb file, or a list, set, or tuple of these objects.

secondoptional

window_size

list or tuple of int or float values for the (width, height) dimensions of the displayed window screen size. Default: (1200, 800)

thirdoptional

modules

list of instantiated visualization modules to run upon changing amongst packed_and_poses_and_pdbs objects with the slider, matching the namespace pyrosetta.distributed.viewer.set* Default: []

fourthoptional

delay

float or int time delay in seconds before rendering the Viewer in a Jupyter notebook, which is useful to prevent overburdening the Jupyter notebook client if for looping over quick modifications to a Pose, and should be >= 0. Default: 0.25

fifthoptional

continuous_update

True or False. When using the interactive slider widget, False restricts rendering to mouse release events. Default: False

A Viewer instance.

pyrosetta.distributed.viewer.core.expand_notebook()

Expand Jupyter notebook cell to maximum width.