cytoscape / ipycytoscape

A Cytoscape Jupyter widget
https://ipycytoscape.readthedocs.io/en/master/
BSD 3-Clause "New" or "Revised" License
269 stars 62 forks source link

How to change rendering space for ipycytoscape graph when rendering with voila. #212

Closed joseberlines closed 3 years ago

joseberlines commented 3 years ago

Imaging you are building a graph that you later on want to render with voila is is possible to somehow specify that the space in which the graph is to be plotted should be bigger or of a particular dimension

Screenshot 2020-12-16 at 22 26 06

?

marimeireles commented 3 years ago

Huh, I'm not really sure @joseberlines. You might have more luck asking on the voila repo or at the QuantStack room https://gitter.im/QuantStack/Lobby

joseberlines commented 3 years ago

Thanks. Good point

marimeireles commented 3 years ago

No probs. I think https://github.com/voila-dashboards/voila-gridstack might be what you're looking for. But really don't know much about it. Good luck :)

ianhi commented 3 years ago

@joseberlines can you try to modify the height of the cytoscape object by doing:

G.layout.height = '1000px'

I chose 1000px because it is big, but I think that that string can be any valid css for defining the height