Try PowerShell – An Interactive Tutorial

September 28, 2009

in Interactive,IronPython,PowerBoots,PowerShell,Try Python,Tutorial,WPF

I created a new CodePlex project Try PowerShell, here is the download.

image

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 }

Tweets that mention Try PowerShell – An Interactive Tutorial -- Topsy.com
09.29.09 at 5:40 am
Episode 86 – Jason Shirk from the PowerShell team « PowerScripting Podcast
10.04.09 at 10:22 pm

{ 6 comments… read them below or add one }

Davin Tanabe 09.28.09 at 9:19 pm

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

qa_warrior 09.28.09 at 10:21 pm

This is totally sweet.

Paul Chavez 09.29.09 at 10:48 pm

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!

Michael Foord 09.30.09 at 9:21 am

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.

Doug Finke 09.30.09 at 10:26 am

Thanks Michael, the link to Try Python is fixed.

Arif Qureshi 08.03.11 at 1:33 am

I like it, it makes my job very easy, many thanks

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Contrat Creative Commons

© 2007-2012, Doug Finke