Skip to content

Update python-igraph references #4383

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

Merged
merged 3 commits into from
Oct 16, 2023
Merged

Update python-igraph references #4383

merged 3 commits into from
Oct 16, 2023

Conversation

LiamConnors
Copy link
Member

@LiamConnors LiamConnors commented Oct 14, 2023

To close #4285

Couldn't find a reason for the sudo pip install references on the original PR, #4289, and it seems to work fine without

This was referenced Oct 14, 2023
@@ -55,7 +55,7 @@ Namely, if the distance(`V[i], V[j]`), belongs to the $K^{th}$ interval associat

We processed data provided by [Eurovision Song Contest](http://www.eurovision.tv/page/history/by-year/contest?event=2083#Scoreboard), and saved the corresponding graph in a `gml` file. Now we can read the `gml` file and define an [`igraph.Graph`](http://igraph.org/python/) object.

Install the Python libraries with `sudo pip install python-igraph` and `sudo pip install networkx`.
Install the Python libraries with `pip install igraph` and `sudo pip install networkx`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove the second sudo too?

@@ -31,7 +31,7 @@ Plotly's Python library is free and open source! [Get started](https://plot.ly/p


#### Comparison
In this tutorial we plot the same network - the coauthorship network of scientists working on network theory and experiment - first as an `igraph.Graph` object, with the Kamada-Kawai layout, and then as a `networkx.Graph`, with the Fruchterman-Reingold layout. Install the Python libraries with `sudo pip install python-igraph` and `sudo pip install networkx`.
In this tutorial we plot the same network - the coauthorship network of scientists working on network theory and experiment - first as an `igraph.Graph` object, with the Kamada-Kawai layout, and then as a `networkx.Graph`, with the Fruchterman-Reingold layout. Install the Python libraries with `pip install igraph` and `sudo pip install networkx`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same Q

@LiamConnors
Copy link
Member Author

@alexcjohnson looking closer at those examples that use sudo, they are actually for Python 2 and Plotly.py v3, so probably best not to update them at all. pip install igraph won't work for Python 2. I think we can probably just remove these pages altogether, but I need to look into the correct way to remove v3 pages.

@alexcjohnson
Copy link
Collaborator

ah yep, makes sense. Not sure if it's worth removing those pages... could be worthwhile in fact adding links from them to dash-cytoscape docs as the more modern and powerful solution for the same kind of needs.

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃 You're still changing the Py2 pages from python-igraph to igraph - but I think that's OK, really nobody should be using Py2 anymore and recent igraph and python-igraph are apparently literally the same code.

@LiamConnors LiamConnors merged commit cf64bca into doc-prod Oct 16, 2023
@LiamConnors LiamConnors deleted the igraph-updates branch October 16, 2023 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants