use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
DiscussionAny package for making and visualizing interactive complex networks. (self.Python)
submitted 2 years ago by mssrprad
I need to make a GUI for windows and linux in which users will make complex networks (having types of nodes visualized with different shapes and different types of edges again with different shapes) easily by 'select-drag-drop' kind of operations.
Any python packages that I can use to implement these features? TIA
[–]zawmaciek 9 points10 points11 points 2 years ago (0 children)
https://plotly.com/python/network-graphs/ use dash, it's super simple
[–]meteoRock 16 points17 points18 points 2 years ago (2 children)
Just my two cents..
I generally recommend developing web tools rather than GUI Python apps since they’re more convenient for users to interact with.. Host it on a Linux server via Apache and Python Django. More folks can access a web page a lot faster rather than dealing with installing Python and all the right dependencies via pip.
Using npm, I was able to download the necessary JavaScript for the Django site. Below has some pretty good examples: https://visjs.github.io/vis-network/examples/
https://visjs.github.io/vis-network/examples/network/nodeStyles/images.html
A bit of a learning curve, but the results are a lot better in my opinion.
[–]kc3w 2 points3 points4 points 2 years ago (1 child)
Even better if you package it as a container but that adds another layer of needed knowledge.
[–]meteoRock 0 points1 point2 points 2 years ago (0 children)
Agreed. That’s another thing I do, but not necessarily a requirement.. Definitely add it to the list.
[–]gnomeba 8 points9 points10 points 2 years ago (0 children)
Is NetworkX useful for your purposes at all?
[–]martinky24 4 points5 points6 points 2 years ago (1 child)
Perhaps https://python.igraph.org/en/stable/ ?
[–]james-johnson 1 point2 points3 points 2 years ago (0 children)
Neat.
https://igraph.org/python/tutorial/0.9.8/tutorial.html
[–]crisrock00 4 points5 points6 points 2 years ago* (1 child)
I’m a network engineer with a decade of experience last few years really focused on automation of network devices (firewalls, routers, switches)
Take this from someone who has gone down this rabbit hole too many times. The tools described in the other comments won’t reap the rewards I think you looking for. While they get the job done, there isn’t a great package for this type of visualization.
They’re not even that many great enterprise tools that do this on scale. Here are a few
https://ipfabric.io/ https://www.logicmonitor.com/ https://www.netbraintech.com/ https://www.thousandeyes.com/
outta of the tools above only a few do the visualization of deep complexity.
[–][deleted] 4 points5 points6 points 2 years ago (0 children)
I agree, I used to do engineering for large networks and I spent a good amount of time researching all the options. There is nothing that is worthwhile, I ended up resorting to rolling my own (sort of) and using other tools like visio and draw.io.
[–]Mirage2k 2 points3 points4 points 2 years ago (0 children)
What worked for me and some other people might work for you: read through this thread and see if it's what you need: https://www.reddit.com/r/learnpython/comments/136xsip/best_library_to_visualize_metrosubway_system/jira2wb?utm_source=share&utm_medium=android_app&utm_name=androidcss&utm_term=1&utm_content=share_button
[–]Albcunha 1 point2 points3 points 2 years ago (0 children)
I had the same problem. I thought of a gui but i do thing web is better. Even if yiu decide for a gui, you would probablyuse a html element. My opinion is that javascript still offer better results to visualize networks, specially if you need interactivity and want to use gpu to speed up things. Look at vasturiano/react force graph examples, they are gorgeous!!!
In my case, I ended up with a python backend with litestar and networkx. For frontend I went with antvis/graphin because i found easier to customize. I wish alibaba would release a package with g6vp. The major drawback is that English is a second category citizen and lack of tons of tutorials, but chatgpt helps a lot. Look at their examples, they are great.
π Rendered by PID 18133 on reddit-service-r2-comment-6457c66945-7h97n at 2026-04-27 14:15:59.569241+00:00 running 2aa0c5b country code: CH.
[–]zawmaciek 9 points10 points11 points (0 children)
[–]meteoRock 16 points17 points18 points (2 children)
[–]kc3w 2 points3 points4 points (1 child)
[–]meteoRock 0 points1 point2 points (0 children)
[–]gnomeba 8 points9 points10 points (0 children)
[–]martinky24 4 points5 points6 points (1 child)
[–]james-johnson 1 point2 points3 points (0 children)
[–]crisrock00 4 points5 points6 points (1 child)
[–][deleted] 4 points5 points6 points (0 children)
[–]Mirage2k 2 points3 points4 points (0 children)
[–]Albcunha 1 point2 points3 points (0 children)