PageIndex
PageIndex copied to clipboard
no create_node_mapping() in utils
In the example there is a line code. node_map = utils.create_node_mapping(tree) but the function is not there
Hi, thanks for raising the issue.
The example uses the PageIndex SDK (API) for generating PageIndex trees.
utils.create_node_mapping() is part of our pip package:
pip install pageindex
Once installed:
import pageindex.utils as utils
node_map = utils.create_node_mapping(tree)