Hi Brian,

If you only change the PREPARE lines then you are still probably working under 
the old lab805 version. 

This link shows what needs to be present for the new version of the lab to be 
recognized:
https://code.jsoftware.com/wiki/Labs/Migration
If this is the problem then when the first lines of the lab are adjusted the 
NB:labprepare: command should work as expected.

There are other issues that show up with Chapter numbering though, because of 
the way that 'skipped' lines are not counted.

In my video labs, I resorted to doing my background work in a separate script 
which is loaded up front from a different locale.
This keeps the base locale clean, but allows the lab locales to be available to 
the user. 
It also allows me to run video in console, jqt and jhs environments because I 
can do a check on the environment in which the lab is being run and load 
appropriate scripts.

load '~addons/media/videolabs/catalanjqt.ijt' for the jqt version of the lab
and load '~addons/media/videolabs/catauxjqt.ijt' for the auxiliary script that 
I use instead of NB.labprepare:
the video commands can be found by load  
'~addons/media/videolabs/videolabjqt.ijs'

Hope this is helpful.

Cheers, bob

> On Apr 26, 2021, at 09:55, Brian Schott <[email protected]> wrote:
> 
> Because I am contemplating writing a Lab myself,
> I have been reviewing the text of 2 impressive Labs:
> '~addons/labs/labs/core/introcourse.ijt' and
> '~addons/labs/labs/core/jclickbeginners.ijt' .
> 
> I have been reviewing the PREPARE sections in the 2 Labs.
> The PREPARE sections are very impressive on their own,
> but I wonder how they would be done *invisibly*
> with the new Labs guidelines that deprecate PREPARE?
> (If I just remove the words PREPARE from the Labs,
> the code is shown at the beginning of the Lab.)
> 
> I have been looking at the following link to
> accomplish this, but when I replace the 2 *PREPARE*s in the
> .ijt scripts with *NB.labprepares:*s, I do not get the desired
> invisible results.
> 
> https://code.jsoftware.com/wiki/Labs/Deprecated_Commands
> 
> JVERSION
> 
> Engine: j807/j64/darwin
> 
> Release-c: commercial/2019-02-24T10:50:40
> 
> Library: 8.07.26
> 
> Qt IDE: 1.7.9/5.9.7
> 
> Platform: Darwin 64
> 
> Installer: J807 install
> 
> InstallPath: /users/brian/j64-807
> 
> Contact: www.jsoftware.com
> 
> 
> 
> -- 
> (B=)
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to