fslaborg / Cytoscape.NET

.NET interface for Cytoscape.js written in F#
http://fslab.org/Cytoscape.NET/
MIT License
45 stars 5 forks source link

Render in a polyglot notebook #9

Closed HarryMcCarney closed 1 year ago

HarryMcCarney commented 1 year ago

Is there a way to do this or does it always need to load in a browser?

muehlhaus commented 1 year ago

Hi @HarryMcCarney , unfortunately we have only in browser support at the moment. I will have a look how easy this can be changed...

HarryMcCarney commented 1 year ago

Thanks @muehlhaus and @GeorgeS2019. In case you were wondering this is what the pallet distribution network in Chile looks like

image
HarryMcCarney commented 1 year ago

@GeorgeS2019 have you got an example of rendering to SVG? Unless I have missed something the lib doesn't seem to support this.

GeorgeS2019 commented 1 year ago

@kMutagene

Reference: https://github.com/fslaborg/Cyjs.NET/issues/10#issue-1637469976

kMutagene commented 1 year ago

@HarryMcCarney There are no direct ways for SVG conversion at the moment, however we started implementing an interactive extension the same way it works for Plotly.NET, We'll keep you updated.

kMutagene commented 1 year ago

@HarryMcCarney The ground work for rendering CyGraphs is merged and released. There is some work to do internally (e.g. sizing does not work atm: #14 ), but there are now no technical blockers anymore. You'll just need to reference the new Cytoscape.NET.Interactive nuget package, and end cells with the CyGraph object:

image