Skip to main content
Engineering LibreTexts

2.8: Playgrounds and Transcripts

  • Page ID
    39726
    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Let us start with some exercises:

    1. Close all open windows within Pharo.
    2. Open a Transcript and a Playground/workspace. (The Transcript can be opened from the World > Tools > ... submenu.)
    3. Position and resize the transcript and playground windows so that the playground just overlaps the transcript (see Figure \(\PageIndex{1}\)).

    You can resize windows by dragging one of the corners. At any time only one window is active; it is in front and has its border highlighted.

    About Transcript. The Transcript is an object that is often used for logging system messages. It is a kind of system console.

    About Playground. Playgrounds are useful for typing snippets of code that you would like to experiment with. You can also use playgrounds simply for typing any text that you would like to remember, such as to-do lists or instructions for anyone who will use your image.

    Type the following text into the playground:

    Transcript show: 'hello world'; cr.
    

    Try double-clicking at various points on the text you have just typed. Notice how an entire word, entire string, or all of the text is selected, depending on whether you click within a word, at the end of the string, or at the end of the entire expression. In particular, if you place the cursor before the first character or after the last character and double-click, you select the complete paragraph.

    Select the text you have typed, right click and select Do it. Notice how the text ”hello world” appears in the transcript window (See Figure \(\PageIndex{1}\)). Do it again.

    Displaying a string in the Transcript.
    Figure \(\PageIndex{1}\): Executing an expresssion: displaying a string in the Transcript.

    This page titled 2.8: Playgrounds and Transcripts is shared under a CC BY-SA 3.0 license and was authored, remixed, and/or curated by via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.