[GAP Forum] Reloading a package

Piotr Mizerka piotr.mizerka at amu.edu.pl
Tue Mar 30 12:20:47 BST 2021


I have the following question concerning loading of GAP packages
(concerns in the same way both Linux and Windows). 

Suppose I have a package named "SamplePackage" located in the pkg
directory. After launching a GAP session I load the SamplePackage with

LoadPackage( "SamplePackage" );

and it works fine. My problem is now as follows: I work "live" on the
SamplePackage and I make a lot of changes and want to see the effect.
Unfortunately after making a change in some of SamplePackage files and
loading it again with "LoadPAckage("SamplePackage") in the same GAP
session it does not load the update (I guess it is the custom beheviour
of GAP). In order to see the update in the package I have to launch a
new session and load the package again. It solves the problem but is a
littlbe bit annoying as one has to repeat the same command to load the
package over and over again. 

Is there a way to reload the package in the same GAP session such that
the updates are visible?


More information about the Forum mailing list