Difference between revisions of "NetworkX and Plazes with Amazon EC2"

From rukapedia
Jump to: navigation, search
 
 
Line 2: Line 2:
  
 
SSH to your instance.
 
SSH to your instance.
 +
 +
Install the required software to enable NetworkX and Matplotlib:
  
 
<pre>
 
<pre>
Line 13: Line 15:
 
yum install pygtk2.x86_64
 
yum install pygtk2.x86_64
 
</pre>
 
</pre>
 +
 +
Now you should be able to run [http://websvn.reinvented.net/filedetails.php?repname=Plazes&path=%2FNetworkX%2FPlazes-NetworkX.py my Plazes + NetworkX Python script]:
 +
 +
<pre>
 +
python Plazes-NetworkX.py -dPDF
 +
</pre>
 +
 +
The result will be a PDF file called '''plazes.pdf''' with the network diagram.

Latest revision as of 18:55, 24 February 2008

Set up an Amazon EC2 instance -- the Getting Started Guide is a good place to start.

SSH to your instance.

Install the required software to enable NetworkX and Matplotlib:

wget https://networkx.lanl.gov/download/networkx/networkx-0.36.tar.gz
gunzip networkx-0.36.tar.gz
tar -xvf networkx-0.36.tar
cd networkx-0.36
python setup.py install
yum install python-matplotlib.x86_64
yum install pygobject2.x86_64
yum install pygtk2.x86_64

Now you should be able to run my Plazes + NetworkX Python script:

python Plazes-NetworkX.py -dPDF

The result will be a PDF file called plazes.pdf with the network diagram.