☰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

How to add labels to networkx graph

Community Supportbokeh
Isaac_Zhou
Isaac_Zhou

What are you trying to do?
I use bokeh.plotting.from_networkx API to draw network graph. And I want to add label to the nodes. But I cannot find how to achieve it from bokeh API document.

BTW, If use networkx with matplotlib, I can achieve what I want. But I prefer the styling of bokeh :slight_smile:

I attach the picture to show case what I want. In this pic, I want to add label “A”/ “B” to the node.

⌁   Link to post

End of archived discussion · Replies are disabled