Dash Cytoscape - returning node positions from layout

I’m on a similar quest!

After applying a layout (Cose, in my case), the nodes are too crowded and I’d just like to space them out a bit. I thought I’d just simply add a slider bar that the user can manipulate, and then grab [‘position’] from each node element in “elements”, scale the positions appropriately and return the network. But elements don’t seem to have a ‘positions’, i get a KeyError: ‘position’.

Probably helpful, but I don’t quite understand it: