<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ionut's WebSpace &#187; Python</title>
	<atom:link href="http://www.vioan.ro/wp/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vioan.ro/wp</link>
	<description>Exploring Creativity Is My Passion</description>
	<lastBuildDate>Wed, 05 Oct 2011 14:28:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mod_python on OpenSUSE 11.0</title>
		<link>http://www.vioan.ro/wp/2008/11/23/mod_python-on-opensuse-110/</link>
		<comments>http://www.vioan.ro/wp/2008/11/23/mod_python-on-opensuse-110/#comments</comments>
		<pubDate>Sun, 23 Nov 2008 17:40:36 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[opensuse]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=279</guid>
		<description><![CDATA[


Mod_python is an Apache module that embeds the  Python interpreter within the server. Here is step by step what I did to configure it for OpenSUSE 11.0:
1. Install mod_python:

1
$ sudo zypper in apache2-mod_python

2. Enable mod_python: edit /etc/sysconfig/apache2 and add python to the APACHE_MODULES line, so your line will look like:

1
APACHE_MODULES=&#34;actions alias auth_basic authn_file authz_host [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.modpython.org/">Mod_python</a> is an <a href="http://httpd.apache.org/">Apache</a> module that embeds the  <a href="http://www.python.org/">Python</a> interpreter within the server. Here is step by step what I did to configure it for OpenSUSE 11.0:</p>
<p>1. Install mod_python:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> zypper <span style="color: #000000; font-weight: bold;">in</span> apache2-mod_python</pre></td></tr></table></div>

<p>2. Enable mod_python: edit <strong>/etc/sysconfig/apache2</strong> and add <strong>python</strong> to the <strong>APACHE_MODULES</strong> line, so your line will look like:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">APACHE_MODULES</span>=<span style="color: #ff0000;">&quot;actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5 python&quot;</span></pre></td></tr></table></div>

<p>3. Run <strong>SuSEconfig</strong></p>
<p>4. Configure Apache to handle Python files:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>conf.d<span style="color: #000000; font-weight: bold;">/</span>python.conf  <span style="color: #666666; font-style: italic;"># create python.conf file</span></pre></td></tr></table></div>

<p>5. Add the next lines to your python.conf file:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #000000; font-weight: bold;">/</span>srv<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>htdocs<span style="color: #000000; font-weight: bold;">/&gt;</span>
  Options Indexes FollowSymLinks MultiViews
  AllowOverride None
  Order allow,deny
  allow from all
  AddHandler mod_python .py
  PythonHandler mod_python.publisher
  PythonDebug On
<span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

<p>6. Restart apache server:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>rcapache2 restart</pre></td></tr></table></div>

<p>7. Create a simple .py file, put it in <strong>/srv/www/htdocs/</strong> and test to see if it is working with http://localhost/filename.py:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">def</span> index<span style="color: black;">&#40;</span>req<span style="color: black;">&#41;</span>:
  <span style="color: #ff7700;font-weight:bold;">return</span> <span style="color: #483d8b;">&quot;It Works: mod_python ENABLED&quot;</span><span style="color: #66cc66;">;</span></pre></td></tr></table></div>

<p>The other method is to configure the PSP Handler. PSP means Python Server Pages.  PSP files have the extension .psp. If you follow this method it will allow you to include Python code directly in HTML code. To do that, I am sure that <a href="http://www.google.com">google</a> can help you, for me the first method is enough.</p>
<p>That&#8217;s all. The above procedure will work also for CentOS, replacing the corresponding commands and the place where the files are.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/11/23/mod_python-on-opensuse-110/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Enthought Tool Suite &#8211; Eggs, available for OpenSUSE 11</title>
		<link>http://www.vioan.ro/wp/2008/10/27/enthought-tool-suite-eggs-available-for-opensuse-11/</link>
		<comments>http://www.vioan.ro/wp/2008/10/27/enthought-tool-suite-eggs-available-for-opensuse-11/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 19:53:25 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[eggs]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=235</guid>
		<description><![CDATA[Today I have found some time to install and configure a subversion repository. I added the Enthought Tool Suite &#8211; Eggs files for OpenSUSE. I hope that they will work also for you, if not, please let me know. Here is the link to my repo.  See the README file before to install them.
]]></description>
			<content:encoded><![CDATA[<p>Today I have found some time to install and configure a subversion repository. I added the Enthought Tool Suite &#8211; Eggs files for OpenSUSE. I hope that they will work also for you, if not, please let me know. Here is the link to <a href="http://svn.vioan.ro/view/">my repo</a>.  See the README file before to install them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/10/27/enthought-tool-suite-eggs-available-for-opensuse-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>About Programming &#8230;</title>
		<link>http://www.vioan.ro/wp/2008/10/12/about-programming/</link>
		<comments>http://www.vioan.ro/wp/2008/10/12/about-programming/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 10:14:46 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[SciComputing]]></category>
		<category><![CDATA[essay]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=221</guid>
		<description><![CDATA[I would like to point out just a few links about &#8220;Programming&#8221;:

Computer Science Education: Where Are the Software Engineers of Tomorrow?
Teach Yourself Programming in Ten Years
How To Become A Hacker
Hacking and Refactoring
C++: the Ugly Useful Programming Language
C++ Considered Harmful
Why Python?

]]></description>
			<content:encoded><![CDATA[<p>I would like to point out just a few links about &#8220;Programming&#8221;:</p>
<ul>
<li><a href="http://www.stsc.hill.af.mil/CrossTalk/2008/01/0801DewarSchonberg.html">Computer Science Education: Where Are the Software Engineers of Tomorrow?</a></li>
<li><a href="http://norvig.com/21-days.html">Teach Yourself Programming in Ten Years</a></li>
<li><a href="http://www.catb.org/~esr/faqs/hacker-howto.html">How To Become A Hacker</a></li>
<li><a href="http://www.catb.org/~esr/writings/hacking-and-refactoring.html">Hacking and Refactoring</a></li>
<li><a href="http://www.blogistan.co.uk/blog/mt.php/2008/10/10/the_enduring_appeal_of_c">C++: the Ugly Useful Programming Language</a></li>
<li><a href="http://esr.ibiblio.org/?p=532">C++ Considered Harmful</a></li>
<li><a href="http://www.linuxjournal.com/article/3882">Why Python?</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/10/12/about-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is Mathematics Beautiful? First part: Surfaces</title>
		<link>http://www.vioan.ro/wp/2008/10/11/is-mathematics-beautiful-first-part-surfaces/</link>
		<comments>http://www.vioan.ro/wp/2008/10/11/is-mathematics-beautiful-first-part-surfaces/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 19:51:53 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[SciComputing]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[beautiful]]></category>
		<category><![CDATA[mathematics]]></category>
		<category><![CDATA[mayavi]]></category>
		<category><![CDATA[surfaces]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=218</guid>
		<description><![CDATA[&#8220;Mathematics, as much as music or any other art, is one of the means by which we rise to a complete self-consciousness. The significance of Mathematics resides precisely in the fact that it is an art; by informing us of the nature of our own minds it informs us of much that depends on our [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;Mathematics, as much as music or any other art, is one of the means by which we rise to a complete self-consciousness. The significance of Mathematics resides precisely in the fact that it is an art; by informing us of the nature of our own minds it informs us of much that depends on our minds&#8221; &#8211; <strong>J.W.N.Sullivan (1886-1937), Aspects of Science, 1925</strong>.</p>
<p>Just some interesting surfaces. The software used is <a href="http://www.python.org/">Python</a> and <a href="http://code.enthought.com/projects/mayavi/">MayaVi</a>. I used the scripting facilities provided by this great visualization tool, called MayaVi.<br />
[flickr]set:72157607934940446[/flickr]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/10/11/is-mathematics-beautiful-first-part-surfaces/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Graphics with Gnuplot from C and Python language</title>
		<link>http://www.vioan.ro/wp/2008/09/30/graphics-with-gnuplot-from-c-and-python-language/</link>
		<comments>http://www.vioan.ro/wp/2008/09/30/graphics-with-gnuplot-from-c-and-python-language/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 19:41:31 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[Gnuplot]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[SciComputing]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[scientific]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=159</guid>
		<description><![CDATA[If you are doing a lot of calculations/simulations, like me, using C or/and Python language, you also need to visualize your simulated data. One way to do it is just to generate/write a &#8220;data&#8221; file and plot it with your plotting preferred package after the simulation is finished. But maybe, sometimes, you want to see [...]]]></description>
			<content:encoded><![CDATA[<p>If you are doing a lot of calculations/simulations, like me, using C or/and Python language, you also need to visualize your simulated data. One way to do it is just to generate/write a &#8220;data&#8221; file and plot it with your plotting preferred package after the simulation is finished. But maybe, sometimes, you want to see the graph in real time, so, here I would like to show a small C and Python program which calls Gnuplot and save the plot in png format.</p>
<p><strong>C Example</strong>:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">#include&lt;stdio.h&gt;</span>
<span style="color: #808080; font-style: italic;">/*
	Author: Ioan Vancea (www.vioan.ro)
	*****************************/</span>
<span style="color: #993333;">int</span> main<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	FILE <span style="color: #339933;">*</span>pipe <span style="color: #339933;">=</span> popen<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;gnuplot -persist&quot;</span><span style="color: #339933;">,</span><span style="color: #ff0000;">&quot;w&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	fprintf<span style="color: #009900;">&#40;</span>pipe<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;set samples 40<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	fprintf<span style="color: #009900;">&#40;</span>pipe<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;set isosamples 40<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	fprintf<span style="color: #009900;">&#40;</span>pipe<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;set hidden3d<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	fprintf<span style="color: #009900;">&#40;</span>pipe<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;set xrange [-8.000:8.000]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	fprintf<span style="color: #009900;">&#40;</span>pipe<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;set yrange [-8.000:8.000]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	fprintf<span style="color: #009900;">&#40;</span>pipe<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;set zrange [-2.000:2.000]<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	fprintf<span style="color: #009900;">&#40;</span>pipe<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;set terminal png<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	fprintf<span style="color: #009900;">&#40;</span>pipe<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;set output 'graph.png'<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	fprintf<span style="color: #009900;">&#40;</span>pipe<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;set title 'We are plotting from C'<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	fprintf<span style="color: #009900;">&#40;</span>pipe<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;set xlabel 'Label X'<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	fprintf<span style="color: #009900;">&#40;</span>pipe<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;set ylabel 'Label Y'<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #808080; font-style: italic;">/* fprintf(pipe, &quot;plot 'datafile.dat' using 1:2\n&quot;);*/</span>
	fprintf<span style="color: #009900;">&#40;</span>pipe<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;splot cos(x)+cos(y)<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  close<span style="color: #009900;">&#40;</span>pipe<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>The output:</p>
<p><a href="http://www.vioan.ro/wp/wp-content/uploads/2008/09/graph.png"><img class="aligncenter size-medium wp-image-160" title="graph" src="http://www.vioan.ro/wp/wp-content/uploads/2008/09/graph-300x225.png" alt="" width="300" height="225" /></a></p>
<p><strong>Python</strong> <strong>Example</strong> (I use <a href="http://gnuplot-py.sourceforge.net/">Gnuplot.py</a>):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#!/usr/bin/env python</span>
&nbsp;
<span style="color: #483d8b;">''</span><span style="color: #483d8b;">'
	Author: Ioan Vancea (www.vioan.ro)
'</span><span style="color: #483d8b;">''</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">math</span>
<span style="color: #ff7700;font-weight:bold;">import</span> Gnuplot
gp = Gnuplot.<span style="color: black;">Gnuplot</span><span style="color: black;">&#40;</span>persist=<span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span>
x = <span style="color: #008000;">range</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">1000</span><span style="color: black;">&#41;</span>
y = <span style="color: black;">&#91;</span><span style="color: #dc143c;">math</span>.<span style="color: black;">sin</span><span style="color: black;">&#40;</span>a<span style="color: black;">&#41;</span> + <span style="color: #dc143c;">math</span>.<span style="color: black;">cos</span><span style="color: black;">&#40;</span>a<span style="color: black;">&#41;</span> + <span style="color: #dc143c;">math</span>.<span style="color: black;">tan</span><span style="color: black;">&#40;</span>a<span style="color: black;">&#41;</span> <span style="color: #ff7700;font-weight:bold;">for</span> a <span style="color: #ff7700;font-weight:bold;">in</span> x<span style="color: black;">&#93;</span>
data = Gnuplot.<span style="color: black;">Data</span><span style="color: black;">&#40;</span>x, y, title=<span style="color: #483d8b;">'Plotting from Python'</span><span style="color: black;">&#41;</span>
gp<span style="color: black;">&#40;</span><span style="color: #483d8b;">'set data style lines'</span><span style="color: black;">&#41;</span>
gp<span style="color: black;">&#40;</span><span style="color: #483d8b;">'set xlabel &quot;Label x&quot;'</span><span style="color: black;">&#41;</span>
gp<span style="color: black;">&#40;</span><span style="color: #483d8b;">'set ylabel &quot;Label y&quot;'</span><span style="color: black;">&#41;</span>
gp.<span style="color: black;">plot</span><span style="color: black;">&#40;</span>data<span style="color: black;">&#41;</span><span style="color: #66cc66;">;</span>
gp.<span style="color: black;">hardcopy</span><span style="color: black;">&#40;</span>filename=<span style="color: #483d8b;">&quot;pyplot.png&quot;</span>,terminal=<span style="color: #483d8b;">&quot;png&quot;</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<p>The output:</p>
<p><a href="http://www.vioan.ro/wp/wp-content/uploads/2008/09/pyplot.png"><img class="aligncenter size-medium wp-image-161" title="pyplot" src="http://www.vioan.ro/wp/wp-content/uploads/2008/09/pyplot-300x225.png" alt="" width="300" height="225" /></a></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/09/30/graphics-with-gnuplot-from-c-and-python-language/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Installing Enthought Tool Suite (ETS) on OpenSUSE 10.3</title>
		<link>http://www.vioan.ro/wp/2008/06/11/installing-enthought-tool-suite-ets-on-opensuse-103/</link>
		<comments>http://www.vioan.ro/wp/2008/06/11/installing-enthought-tool-suite-ets-on-opensuse-103/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 14:38:59 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[SciComputing]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=125</guid>
		<description><![CDATA[The Enthought Tool Suite (ETS) is a collection of components developed by Enthought to construct custom scientific applications. It includes a wide variety of components, including:

an extensible application framework
application building blocks
2-D and 3-D graphics libraries
scientific and math libraries
developer tools
MayaVi Data Visualizer

It is available for Linux, Mac OS X and Windows, but they don&#8217;t provide binaries [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.enthought.com/">Enthought Tool Suite</a> (ETS) is a collection of components developed by <a href="http://www.enthought.com/">Enthought</a> to construct custom scientific applications. It includes a wide variety of components, including:</p>
<ul>
<li>an extensible application framework</li>
<li>application building blocks</li>
<li>2-D and 3-D graphics libraries</li>
<li>scientific and math libraries</li>
<li>developer tools</li>
<li><a href="http://mayavi.sourceforge.net/">MayaVi</a> Data Visualizer</li>
</ul>
<p>It is available for Linux, Mac OS X and Windows, but they don&#8217;t provide binaries for OpenSUSE, I don&#8217;t now why.</p>
<p>Here are just some steps to get it running on OpenSUSE 10.3. But, you have to install some packages, check <a href="https://svn.enthought.com/enthought/wiki/Install/ETS_3.0.0b1/Py2.5/OpenSUSE_10.3_i686">here</a> before to proceed:<br />
My system:</p>
<pre class="code">ionut@vaio:~&gt; cat /etc/SuSE-release
openSUSE 10.3 (X86-64)
VERSION = 10.3</pre>
<p>I installed the suite in <em>/usr/local/lib64/python2.5/site-packages</em> so, let&#8217;s create the directories:</p>
<pre class="code">sudo mkdir -p /usr/local/lib64/python2.5/site-packages</pre>
<p>Get the souces for <em>ets</em> tool from their repository:</p>
<pre class="code">svn co https://svn.enthought.com/svn/enthought/ETSProjectTools/trunk ETSProjectTools</pre>
<p>Build <em>ets</em> (it is a kind of wrapper for their repository), a tool that automates the checkout process.</p>
<pre class="code">cd ETSProjectTools
python setup.py install</pre>
<p>Get the latest souces for the project files,  and build the eggs for the components:</p>
<pre class="code">ets co ETS
cd ETS_3.0.0b1
svn export https://svn.enthought.com/svn/enthought/sandbox/egg_builder.py
python egg_builder.py</pre>
<p>If the build was successful, you would not have received any errors (though there will be one warning at the end about not building egg.info files) and the built eggs would be residing in a directory called dist</p>
<p>Install the eggs in the directory which we created at the beginning:</p>
<pre class="code">sudo easy_install -f dist/ -H dist/ ETS</pre>
<p>Now you can try some examples which are included:</p>
<ul>
<li> check if Traits is working:</li>
</ul>
<pre class="code">python Traits_3.0.0b1/examples/demo/Applications/converter.py</pre>
<ul>
<li>check if Mayavi is working:</li>
</ul>
<pre class="code">python Mayavi_3.0.0a1/examples/mayavi/scatter_plot.py
python Mayavi_3.0.0a1/examples/mayavi/streamline.py</pre>
<p>or just run <strong>mayavi2</strong> command.</p>
<p>In my case everything is working fine, I hope that also for you. Here are some references: <a href="https://svn.enthought.com/enthought/wiki/Build/ETS_2.7.1/Py2.5/Ubuntu_7.10_i686"></a></p>
<ul>
<li><a href="https://svn.enthought.com/enthought/wiki/Build/ETS_2.7.1/Py2.5/Ubuntu_7.10_i686">Installation on Ubuntu_7.10_i686</a></li>
<li><a href="https://svn.enthought.com/enthought/wiki/Build/ETS_2.6.0b1/Py2.5/Fedora_8_i686">Installation on Fedora_8_i686</a></li>
<li><a href="http://code.enthought.com/source/">Source code<br />
</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/06/11/installing-enthought-tool-suite-ets-on-opensuse-103/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>SAGE: Open Source Math Software</title>
		<link>http://www.vioan.ro/wp/2008/05/31/sage-open-source-math-software/</link>
		<comments>http://www.vioan.ro/wp/2008/05/31/sage-open-source-math-software/#comments</comments>
		<pubDate>Sat, 31 May 2008 19:47:51 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[SciComputing]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=123</guid>
		<description><![CDATA[&#8220;Sage is a huge distribution of free open source mathematical software:

Algebra and calculus: Maxima, SymPy
High precision arithmetic: GMP, MPFR, MPFI, quaddouble, Givaro
Commutative algebra: Singular
Number theory: PARI, NTL, mwrank, ECM, FLINTQS, GMP-ECM
Exact linear algebra: LinBox, IML
Group theory:  GAP
Scientific computation: GSL, SciPy, NumPy, cvxopt
Statistical computation: R
Graphics (2d and 3d): Matplotlib, Tachyon3d, Jmol

Sage has a highly developed [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;<a href="http://www.sagemath.org">Sage</a> is a <strong>huge distribution</strong> of free open source mathematical software:</p>
<ul>
<li>Algebra and calculus: Maxima, SymPy</li>
<li>High precision arithmetic: GMP, MPFR, MPFI, quaddouble, Givaro</li>
<li>Commutative algebra: Singular</li>
<li>Number theory: PARI, NTL, mwrank, ECM, FLINTQS, GMP-ECM</li>
<li>Exact linear algebra: LinBox, IML</li>
<li>Group theory:  GAP</li>
<li>Scientific computation: GSL, SciPy, NumPy, cvxopt</li>
<li>Statistical computation: R</li>
<li>Graphics (2d and 3d): Matplotlib, Tachyon3d, Jmol</li>
</ul>
<p>Sage has a highly developed unified collection of pseudo-tty based interfaces that make it is possible to make extensive use of Maple, Mathematica, Magma, Matlab, GAP, Maxima, Singular, PARI, and many other systems from anywhere within a single Sage program.&#8221; It is available for Linux, Mac OS X and Windows or you can download the source code.</p>
<p>Check <a href="http://sagemath.blogspot.com/2008/05/can-there-be-viable-free-open-source.html">here</a> for a short overview or check <a href="http://www.sagemath.org">Sage</a> webpage for more.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2008/05/31/sage-open-source-math-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

