Node

class orion_notebook.graph.nodes.node.Node(node_type: orion_notebook.graph.nodes.node_type.NodeType, id: Optional[str] = None, data: Optional[orion_notebook.graph.nodes.node_data.NodeData] = None, position: dict = {})

Bases: object

Base class for all types of nodes in the Graph instance. Contains common properties and functions

data: orion_notebook.graph.nodes.node_data.NodeData
details: Union[dict, orion_notebook.graph.nodes.node_data.NodeData]
get_extensibility_menu()List[orion_notebook.graph.menu_items.MenuItem]

Gets the menu options (MenuItems) defined by the user for a Node

Returns

MenuItem list representing the menu options defined by the user for the node

Return type

List[MenuItem]

get_extra_details()

Sets up the details for the Node (by default the Node data)

get_menu_options()List[orion_notebook.graph.menu_items.MenuItem]

Gets the menu options (MenuItems) for a Node

Returns

MenuItem list representing the menu options for the node

Return type

List[MenuItem]

id: str
name: str
node_type: orion_notebook.graph.nodes.node_type.NodeType
position: dict