I created a new CodePlex project Try PowerShell, here is the download.
Interactive PowerShell Tutorial
Is an interactive PowerShell interpreter that runs in WPF which is also written in PowerShell using PowerBoots. The tutorial on the left has PowerShell code that can be run by clicking on the PS > button.
Features
- Click on the PS > button to execute it in the interpreter on the right hand side
- Clicking the PS > types the commands, you can then modify them and experiment
- Type arbitrary PowerShell commands and click run to see the results
- Click the magnifying glass and search inside the tutorial
- Use the slider to resize the text of the tutorial
PowerShell Authors
Can quickly build interactive tutorials for others. Placing their PowerShell between a .pscode/.epscode block and passing the text file to TryPowerShell.
TryPowerShell supports a simple text file to build the tutorial. Currently it supports a small markup. Creating a customized tutorial with embedded PowerShell code is easy and straightforward.
Markup
| h1 | Heading 1 format |
| h2 | Heading 2 format |
| h3 | Heading 3 format |
| .pscode | Begin Block for PowerShell code. Creates the clickable button enabling interaction with the interpreter |
| .epscode | End Block for PowerShell code |
The Idea
I watched Michael Foord create his interactive IronPython Sliverlight version while he twittered his improvements. While a PowerShell Silverlight version would have been nice, using PowerBoots to build the WPF version worked out great.
My Thanks To
Michael Foord creator of Try Python, Joel ‘Jaykul’ Bennett creator of PowerShell PowerBoots and James Brundage of the PowerShell team.



{ 2 trackbacks }
{ 6 comments… read them below or add one }
Brilliant, man—this scratchpad will always be open on my desktop whenever I’m futzing around with my meager collection of PS scripts. If only everything could be made this easy to learn… —DKT
This is totally sweet.
Wow this is great! Really really nice example of how to use Boots/WPF. I’ll probably pass around the actual script to a few people at work are interested in Powershell, too. Thanks!
Very nice. I’d considered making Try Python a desktop app as well (a lot of code could be shared). You’ve inspired me to actually put the effort in to do it.
The links to Try Python itself are wrong by the way.
Thanks Michael, the link to Try Python is fixed.
I like it, it makes my job very easy, many thanks