pygraphistry icon indicating copy to clipboard operation
pygraphistry copied to clipboard

Add `Hide Standalone Nodes` as a URL parameter.

Open sevickson opened this issue 4 years ago • 3 comments

Add Hide Standalone Nodes as a URL parameter. Add this option to be able to check the box for Hide Standalone Nodes making it possible to hide standalone nodes at load.

sevickson avatar Jan 15 '21 21:01 sevickson

You should now be able to do &pruneOrphans=true (or .settings(url_params={'pruneOrphans': 'true'}))

Landed w/ server 2.34.14 🚀

lmeyerov avatar Jan 19 '21 08:01 lmeyerov

There seems to be a bug with setting .settings(url_params={'pruneOrphans': 'true'})

On initial load, the Hide Standalone Nodes setting is selected, but it doesn't seem to be working image

However, toggling it Off and On again manually, seems to get the desired result of lesser number of nodes image

Could you pls help to take a look?

stephenleo avatar Jan 02 '22 13:01 stephenleo

Interesting, thanks -- I'm betting this is a timing issue, where somehow the url param is not getting loaded in the initial pageload filter pipeline. Meanwhile, loading it on a delay (wait 2-3s for post-load) w/ the JS API client is probably a workaround for JS embedding API users, but not for pure URL (ex: Python) embeddings.

Will add to our core engine tracker, thank you!

lmeyerov avatar Jan 02 '22 21:01 lmeyerov