PageIndex icon indicating copy to clipboard operation
PageIndex copied to clipboard

no create_node_mapping() in utils

Open igzICCyg opened this issue 3 months ago • 1 comments

In the example there is a line code. node_map = utils.create_node_mapping(tree) but the function is not there

igzICCyg avatar Oct 09 '25 16:10 igzICCyg

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)

rejojer avatar Oct 09 '25 17:10 rejojer