nanover.jupyter.utilities module
- class nanover.jupyter.utilities.InteractionsUtility(state: StateService)
Bases:
StateKeysUtility- clear_all()
- remove_interaction(key: str)
- update_interaction(key: str, interaction: ParticleInteraction)
- class nanover.jupyter.utilities.Mode
Bases:
object- on_button_pressed(*, key: str, cursor: dict, button: str)
- on_button_released(*, key: str, cursor: dict, button: str)
- on_cursor_updated(*, key: str, cursor: dict)
- on_interaction_started(*, key: str, interaction: ParticleInteraction)
- on_interaction_stopped(*, key: str, interaction: ParticleInteraction)
- on_interaction_updated(*, key: str, interaction: ParticleInteraction)
- class nanover.jupyter.utilities.NanoverJupyterUtilities(runner: OmniRunner)
Bases:
object- add_interaction_mode(mode: T, name: str, icon='👆')
- classmethod from_runner(runner: OmniRunner)
- mark_checkpoint()
- notify_all(message: str)
- property scene_transform_scale
- show_logging()
- start_recording()
- stop_recording()
- use_interaction_modes()
- use_recording_commands()
- class nanover.jupyter.utilities.PanelsUtility(state: StateService)
Bases:
StateKeysUtility- static button(label='button', command='test/hello', arguments=None)
- static header(label='header')
- remove_panel(key: str)
- static slider(label='slider', variable='variable.dummy', range=(0.0, 1.0), integer=False, step=None)
- update_panel(key: str, *elements: Any, position=(0.0, 0.0, 0.0), label='Unnamed panel', **kwargs)
- class nanover.jupyter.utilities.SceneObjectsUtility(state: StateService)
Bases:
StateKeysUtility- clear_all()
- remove_label(key: str)
- remove_line(key: str)
- remove_shape(key: str)
- update_label(key: str, *, text='label', position=(0.0, 0.0, 0.0), color=(1.0, 1.0, 1.0, 1.0), size=0.05, parent: str | None = None, **kwargs)
- update_line(key: str, *, positions=((0.0, 0.0, 0.0), (1.0, 1.0, 1.0)), colors=None, color=(1.0, 1.0, 1.0, 1.0), size=0.05, parent: str | None = None, **kwargs)
- update_shape(key: str, *, shape='sphere', position=(0.0, 0.0, 0.0), color=(1.0, 1.0, 1.0, 1.0), size=0.1, parent: str | None = None, **kwargs)
- class nanover.jupyter.utilities.SelectionsUtility(state: StateService)
Bases:
StateKeysUtility- remove_selection(key: str)
- update_selection(key: str, *, particle_ids: list[int] | None = None, renderer='liquorice', interaction_method='single', velocity_reset=False, hide=False)
- class nanover.jupyter.utilities.StateKeysUtility(state: StateService)
Bases:
object- check_flush()
- clear()
- flush()
- classmethod from_client(client: NanoverImdClient)
- classmethod from_runner(runner: OmniRunner)
- remove_object(key: str)
- update_object(key: str, value: dict[str, Any])
- class nanover.jupyter.utilities.StateTransformEntry
Bases:
TypedDict- parent: str | None
- transform: Sequence[float]
- class nanover.jupyter.utilities.TransformsUtility(state: StateService)
Bases:
StateKeysUtility- fetch_transform_root(key: str)
- nanover.jupyter.utilities.make_id_generator(prefix='')