-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate pydot? #5723
Comments
Do you mean providing wheel package for pygraphviz? I know I had colleagues having trouble building/installing the package on MacOS. That would be awesome! |
I looked at the PR mentioned, and it looks like the deprecation warning for |
Ah, I see |
* Use nx_agraph via pygraphviz instead of nx_pydot via pydot. networkx/networkx#5962 and networkx/networkx#5723
The nx_pydot library from NetworkX is deprecated from NetworkX' latest major release, see [1]. To get rid of the dependency we implement a simple DOT generation on our own which fits our minimal needs (basically, the DOT output is only useful for debugging of our internal graphcs). [1] networkx/networkx#5723
On Windows, it's really hard to get pygraphviz to work. I very much prefer a lightweight tool that only outputs a Graphviz dotfile and then lets me run the Graphviz binary from a script to render diagrams from it myself. I'm not sure what the issues with pydot are, but from my perspective as a user, pygraphviz and pydot may overlap somewhat but still fulfill two different needs. If pydot support actually gets removed I'd be SOL wrt network visualization. |
Thanks for this comment! Our support for pydot depends on comments like this one. So thank you. |
umh, i just want to render my graph/network from python script to terminal as inline image, how to do that 😅 ? My trail for reaching here:
|
This comment was marked as off-topic.
This comment was marked as off-topic.
Are you saying you want to render the graph in the terminal window? (we have ascii representations of graphs #5602 ) If you mean you want to render the graph from a terminal-based script, we will continue to support And if you don't need the graphviz features, the matplotlib-based tools we offer will continue in the long term. So, basic image creation is supported. But we aren't able to support all the features of a full-fledged graph visualization tool. Perhaps we should update the comments in the NX/Reference/Drawing section to make it more clera that basic rrawing will continue to be available via networkx. :} |
the text based thing is nice, i wanted to experiment with that too. thanks for sharing it.
nope, i was saying that
|
oh, i
Have shared the following at: #6638 . Please add your input related to this over there. Thanks 😃
|
I believe matplotlib can save the figure without drawing it interactively. |
Just to put a good word in for leaving pydot around for a while, it works on in-browser systems like Jupyter Lite, whereas pygraphviz would not be possible to use there without additional effort compiling a WASM version. |
This is true since
|
@jarrodmillman @MridulS @rossbar A new pydot version has been released which should fix the breaking issues! I'm not sure what's the current state of pydot in networkx, but I'm just letting you know that if you'd want to bring it back, you could try 😄 |
Thanks @lkk7 , that's great news! I'm very much in favor of keeping NX's interface to pydot around now that it's actively maintained and working again. I went ahead and tested I opened #7204 to propose un-deprecating |
In #5721, we added a
PendingDeprecationWarning
fornx.nx_pydot.*
. It has a number of issues and isn't actively maintained. We are also planning to improve installation issues for pygraphviz. This is a tracking issue to gather feedback from users.Please leave a comment if you have feelings either way about this change.
The text was updated successfully, but these errors were encountered: