User Tools

Site Tools


weblogo:manual:sharing

Sharing with Students

INIT.LGO

Creating an INIT.LGO file shares procedures,names and property lists that automatically load each time the student logs in. This is a great way to provide a customized environment for your class.

To create an INIT.LGO file:

  1. create the procedures, names, and property lists you wish your students to have.
  2. save the file as INIT.LGO You must name the file INIT.LGO. Save it at the classroom or at the top level. You don't need to save it into every student's folder.

This will create a “mirrored” copy of the file in each students folder and will load each time they log in. You may update this file as needed.

Remember that the classroom storage is “~CLASS”.

Students can open the files, and edit them however they revert back when a student logs out, they can not permanently change the files.

Using the Editor

As an example, look at this file (comments added for clarity):

INIT.lgo

For this example, follow these steps:

  1. Open the Editor panel and paste the above file.
  2. Make sure that your storage is set to ~CLASS (check the File/Storage menu item).
  3. Select “File/Save/Editor…”.
  4. Select your classroom (if you are logged in as teacher, your classroom is already the top-level folder).
  5. Enter INIT.LGO into the edit field at the bottom (or click INIT.LGO in the list of files if it is already present).
  6. Click “Save”.

Saving your workspace

If you do not want to use the editor, define POLYGON; then, define a procedure MAIN that contains all of the above settings:

TO MAIN
    ; delete the prompt
    MAKE "PROMPT "||
    ; set autosave to save everything
    PPROP "PREFS "AUTOSAVE "ALL
    ; and print stuff for the students to read
    PR `Today's task: What is wrong with the procedure POLYGON?`
    PR `Find out how to fix the procedure; use EDIT "POLYGON to edit the procedure.`
    (PR)
    PO "POLYGON
END

Then, simply save your workspace into the classroom folder. You can either use the File/Save/Logo File menu command, or you use Logo's SAVE command.

If you have logged in with a license code, you need to add the classroom name to the file's path:

SAVE "~CLASS/classroomname/INIT.LGO

If you have logged in as a teacher, your classroom has already been pre-selected, so use this command:

SAVE "~CLASS/INIT.LGO

Whenever a student logs in, Logo loads INIT.LGO from the classroom folder and runs its MAIN procedure if it is defined, causing the same effects as if you had used the editor.

Shared Files for All Classrooms

This section is for users who log in with a license code.

When you log in with a license code, you can see all of your classrooms as sub-direcories. You can save an INIT.LGO file at the top level of your ~CLASS storage to share it with all of your classrooms. Every file that you save at the top level is mirrored in every classroom folder as well as in every student folder. So, if you save an INIT.LGO file at the top level, every student in every classroom loads this INIT.LGO file every time the student logs in. You do not need to save a copy of INIT.LGO in every classroom; one shared INIT.LGO file is fine for all classrooms and students at once.

Unfortunately, virtual (a.k.a. mirrored) files are write protected, so if you have a single INIT.LGO file for all classrooms, you cannot save additional INIT.LGO files in each classroom. You will have to choose if you either want separate INOG.LGO files for every classroom, or a single file for all classrooms.

You can still store other files that you want to share at the top level. If you, for example, want to share a file with certain procedures, save them under a different name at the top level and cause a classroom-specific INIT.LGO to load that file.

Example (note that this is for license code logins; logins with a classroom name do not have access to the top level folder):

SAVE "~CLASS/LIBRARY.LGO

And in the INIT.LGO file for each classroom, you could load that library file. Again, note that you do not need to use a full path name, because LIBRARY.LGO already exists in the classroom or student folder as a virtual file:

LOAD "LIBRARY.LGO
weblogo/manual/sharing.txt · Last modified: 2018/10/25 03:36 by michael