Re: Re: Re: External packages, Manipulate, and MathPlayer
- To: mathgroup at smc.vnet.net
- Subject: [mg92273] Re: [mg92251] Re: [mg91710] Re: External packages, Manipulate, and MathPlayer
- From: Mitch Murphy <mitch at lemma.ca>
- Date: Thu, 25 Sep 2008 05:32:57 -0400 (EDT)
- References: <g9qipl$4hv$1@smc.vnet.net> <200809060606.CAA19715@smc.vnet.net> <FC0D8812-2AB3-473D-A606-49DAAC521720@lemma.ca> <200809240732.DAA13678@smc.vnet.net>
for future reference to others, here's the punchline: you need to load standard packages using the Initialization option of Manipulate. Manipulate[ Regress[Table[{x, 2 + b x + Random[]}, {x, 100}], {1, x}, x], {b, 1, 9, .1}, SaveDefinitions -> True, Initialization :> Needs@"LinearRegression`" ] note that only standard packages (BarCharts, LinearRegression, ...) are available for nbp files intended for the mathematica player. also, the option is given using ":>", not "->". cheers, Mitch On Sep 24, 2008, at 03:32, Jeff Bryant wrote: > The following should be useful. Near the end, there is an advanced > section that deals with this topic. > > http://library.wolfram.com/infocenter/Conferences/7138/ > > Hope this helps. > -Jeff Bryant > Wolfram Research, Inc. > > Mitch Murphy wrote: >> >> On Sep 06, 2008, at 02:06, Jeff Bryant wrote: >> >>> I'm not sure from your message exactly what form your authoring >>> notebook is in, but some elements of your message seem suspect. >>> >>> 1) Packages require special attention in Demonstrations. >>> >> >> please provide details. i couldn't find documentation for this >> topic on >> wolfram website. >> >> >> >>> 2) All code, except that which ships with Mathematica, must reside >>> in >>> the author notebook itself. You can't use Get or Needs on a third >>> party >>> package (the user may not have this package). >>> >> >> >> that's a reasonable restriction, but we should be able to use >> standard >> packages somewhat transparently. >> >> right now, i'm trying to figure out how to use the LinearRegression >> package with an nbp file. >> >> cheers, >> Mitch >> >> >
- References:
- Re: External packages, Manipulate, and MathPlayer
- From: Jeff Bryant <jmbryant12@comcast.net>
- Re: Re: External packages, Manipulate, and MathPlayer
- From: Jeff Bryant <jmbryant12@comcast.net>
- Re: External packages, Manipulate, and MathPlayer