Page MenuHomeSolus

Enable Python 3 support for networkx.
ClosedPublic

Authored by oft on Feb 6 2018, 1:34 PM.

Details

Summary

Enable Python 3 support for networkx as it was requested in
IRC.

Test Plan

Run a simple Python 3 script that uses networkx

import networkx as nx

g = nx.complete_graph(50)

print(g.nodes)
print(g.edges)
print(nx.average_clustering(g))
print(nx.shortest_path(g))

Diff Detail

Repository
R3865 networkx
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

oft created this revision.Feb 6 2018, 1:34 PM
oft updated this revision to Diff 5308.Feb 6 2018, 1:37 PM

Remove a mysterious dash from package.yml

oft retitled this revision from Enable Python 3 support for network. to Enable Python 3 support for networkx..Feb 6 2018, 1:38 PM
oft edited the summary of this revision. (Show Details)
oft updated this revision to Diff 5309.Feb 6 2018, 2:06 PM

Change component from office.math to programming.python

JoshStrobl added a subscriber: JoshStrobl.EditedFeb 9 2018, 5:52 PM

Enable Python 3 support for networkx as it was requested in IRC.

For what purpose exactly? What do we have that requires python3 support in networkx?

Enable Python 3 support for networkx as it was requested in IRC.

For what purpose exactly? What do we have that requires python3 support in networkx?

Based off that discussion from IRC, the user wants to program with networkx in python3 directly rather than using it to enable another program

i.e. load python3, import networkx module and write python code to use whatever it happens to do (of which I do not know).

oft added a comment.Feb 10 2018, 10:38 AM

Enable Python 3 support for networkx as it was requested in IRC.

For what purpose exactly? What do we have that requires python3 support in networkx?

Based off that discussion from IRC, the user wants to program with networkx in python3 directly rather than using it to enable another program
i.e. load python3, import networkx module and write python code to use whatever it happens to do (of which I do not know).

In addition to the above, I need networkx for network science coursework. As in the course, exercises are checked by automatic checker, that uses Python 3.

padraig added a subscriber: padraig.Mar 2 2018, 9:54 AM

Enable Python 3 support for networkx as it was requested in IRC.

For what purpose exactly? What do we have that requires python3 support in networkx?

Going forward, isn't Python3 support is better than just Python2 support? In D668 I tried to build it for both and was asked to justify why Python2 was needed. I use this package for work (I work in network science) and ideally use Python3 for everything, however with libboost in Solus not supporting Pytho3 yet (see D7) I tend to alternate between both.

ikey accepted this revision.Mar 2 2018, 10:17 AM
ikey added a subscriber: ikey.

Guys it only needed one answer xD Thank you anyway, we just wanted to know why it was needed, vs "random do this maybe its handy?" thinking.
I'll land this now :)

This revision is now accepted and ready to land.Mar 2 2018, 10:17 AM
This revision was automatically updated to reflect the committed changes.