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_interaction_started(*, key: str, interaction: ParticleInteraction)
- on_interaction_stopped(*, key: str, interaction: ParticleInteraction)
- class nanover.jupyter.utilities.NanoverJupyterUtilities(runner: OmniRunner)
Bases:
object- add_interaction_mode(mode: T, name: str)
- classmethod from_runner(runner: OmniRunner)
- mark_checkpoint()
- notify_all(message: str)
- start_recording()
- stop_recording()
- use_interaction_modes()
- use_recording_commands()
- 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, **kwargs)
- update_line(key: str, *, positions=((0.0, 0.0, 0.0), (1.0, 1.0, 1.0)), color=(1.0, 1.0, 1.0, 1.0), size=0.05, **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, **kwargs)
- 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])