Sho Screenshots and Examples
Sho Console showing matrix manipulation
"Intellisense"-like behavior
Available for class, method, and filename; activated by hitting <TAB> in the console

Using doc() to Inspect Objects
>>> f = System.Windows.Forms.Form()
>>> doc(f)

Plotting a Sine Wave
>>> x = drange(0, 2*PI,0.05)
>>> plot(sin(x))

Computing a Word Histogram
>>> fp = System.IO.File.ReadAllText("./declarationofindependence.txt")
>>> table = System.Collections.Hashtable()
>>> for word in fp.split():
if table.ContainsKey(word):
table[word] +=1
else:
table[word] = 1
>>> pairs = zip(list(table.Keys), list(table.Values))
>>> pairs.sort(lambda a,b: a[1]<b[1])
>>> bar([elt[0] for elt in pairs[0:10]], [elt[1] for elt in pairs[0:10]])
Creating a Simple GUI
>>> f = System.Windows.Forms.Form()
>>> b = System.Windows.Forms.Button()
>>> f.Controls.Add(b)
>>> b.Text = "Hello World"
>>> b.Location = System.Drawing.Point(250,100)
>>> f.Width = 561
>>> def printhello(sender, evtinfo):
print "Hello World!"
>>> b.Click += printhello
>>> f.ShowDialog()




