Sho 2.0.5, IronPython 2.7, and Python Tools for Visual Studio

Today is a big day for Sho – we’re releasing an update to Sho containing some minor features and bugfixes (version 2.0.5), but the bigger news is that we now have a version that works with IronPython 2.7. This is something our users have been wanting for some time, and we appreciate your requests and…

3

Connecting to Kinect from Sho

By now you’ve certainly heard of the Kinect sensor, and very likely about the freshly-released Kinect SDK developed by some of our colleagues here at Microsoft Research. We wanted Sho users to be able to get in on the fun too, so we’ve worked out a bit of glue code (kinect.py, included at the end…

1

Analyzing Stock Price Data with Sho, Part I

One fun arena for doing data analysis and visualization is the stock market.  Fortunately, a lot of stock market data is now available publicly,  and Sho makes it easy and fun to do various kinds of analysis on it. We’ll look at data from the stocks in the S&P 500 index, since that data is…

3

Speech Synthesis from Sho

Last time, we looked at how we could do speech recognition from Sho.  Well, what about the other direction, speech synthesis (or text-to-speech)?  It turns out that’s even easier to do: >>> clr.AddReference("System.Speech") >>> from System.Speech.Synthesis import SpeechSynthesizer >>> synth = SpeechSynthesizer() >>> synth.Speak("Hello all and welcome to the Blog of Sho") That’s all it…

1

Using Speech Recognition from Sho

One of the great things about Sho is that a broad variety of powerful libraries is available at your fingertips.  Today I’ll give an introduction to using Windows’ speech recognition engine, which is surprisingly easy and fun to use. To get started, you’ll need to have some kind of microphone.  Headsets work best, but webcam…

1

Calling Sho from F#

Yin Zhu at the Hong Kong University of Science and Technology has some sample code for calling Sho libraries from F#. It looks quite simple: hopefully the F# community will find the Sho libraries useful.

0

BioInformatics in Sho: Using the Microsoft Biology Foundation

Beatriz, from the Microsoft Biology Initiative team, recently put up a great post on how to use their Microsoft Biology Foundation (MBF) library from Sho.  Her post gives many more details, but to give you a quick teaser of how easy it is, here is all you have to do to import the library and load up…

0

Using Sho Visualization in WinForms from C#

Over on the Forum of Sho drobertson asked how to create a Contour Chart from C# within a form. I thought that would make good example code, so here it is: using System;using System.Collections.Generic;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using ShoNS.Visualization;using ShoNS.Array;using ShoNS.MathFunc;namespace testForm{ // Create a composite visualization by deriving from System.Windows.Forms.Form public class testForm :…

5

Editing and Debugging Sho Code with Visual Studio 2010 and IronPython Tools

If you’re writing substantial amounts of Sho code, and especially if you’re doing GUI programming, you’ll find that print statements just don’t cut it after some point for debugging.  If you want to set breakpoints, inspect variables, walk the stack, etc., IronPython Tools for Visual Studio 2010 provides a great solution.  It’s also good for…

0

Using Sho for Optimization Tasks

Our colleague Nathan Brixius just wrote a great blog post about how to do some pretty cool tricks with the Optimization package that ships with Sho (including solving the classic N-Queens problem), which is just a thin wrapper of his team’s Solver Foundation.  My personal favorite in the package is Optimizer.QuasiNewton, which implements L-BFGS for fast, unconstrained optimization.  I use…

0