☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Graph Renderer , from_networkx

Community Support
Raha_Asadimehr
Raha_Asadimehr

Hi,

I try to use bokeh for graph visualisation , and I creat a layout function ( not from networkx) , I try to use this function in :

graph_renderer = from_networkx(G,circular_layout )

It works with networkx 1.11 but when I upgrade the networkX to 2.0 , It didn’t work.

Could I use the custom layout function for from_networkx renderer layout argument or It should be nx.layout?

⌁   Link to post
Bryan
Bryan

Hi,

NetworkX made breaking API changes in the jump to 2.0, that required other libraries such as Bokeh to update and accommodate. The necessary updates should have been implemented in

  https://github.com/bokeh/bokeh/pull/6972

Which was merged as part of Bokeh 0.12.10. So the first suggestion is to make sure your Bokeh version is up to date. If you still see problems with Bokeh 0.12.10 then please file a bug report on GitHub.

Thanks,

Bryan

···

On Oct 26, 2017, at 14:52, asadimehr.raha@gmail.com wrote:

Hi,

I try to use bokeh for graph visualisation , and I creat a layout function ( not from networkx) , I try to use this function in :

graph_renderer = from_networkx(G,circular_layout )

It works with networkx 1.11 but when I upgrade the networkX to 2.0 , It didn't work.
Could I use the custom layout function for from_networkx renderer layout argument or It should be nx.layout?

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/e63e29c1-7f3a-40b1-9963-9d20e74d7e65%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post

End of archived discussion · Replies are disabled