Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Saving Packages

  • To: mathgroup at smc.vnet.net
  • Subject: [mg86814] Re: Saving Packages
  • From: "alexxx.magni at gmail.com" <alexxx.magni at gmail.com>
  • Date: Sat, 22 Mar 2008 00:51:54 -0500 (EST)
  • References: <fro3a6$i8l$1@smc.vnet.net> <frqpnm$505$1@smc.vnet.net>

Thanks for the answers, everybody.
I googled this group in the past posts for info on package management,
but didnt find so much info - I'll have to dig deeper.

Your answers were of course right: setting the cells as init cells did
the right thing.

Yet I'd like to explain better what is my larger problem is:
to break down a big project in pieces, it is correct then to save big
chunks of code definitions as packages?
I'm asking because I'd like to still keep on modifying those packages,
as in a standard notebook. But opening the .m file brings up a
different interface, which although it seems useful (drop down boxes
with Functions and Sections - I'd like to have them in the notebook!)
it's not so clear to me if I'm losing something present in the
notebook interface.

What I'm doing now, thanks to your answers, is to work in the .nb
file, modify it as needed, select all cells and set them to init, and
save as .m file. Correct?


thank you!


alessandro

Albert Retey ha scritto:

> Hi,
>
> >>>
> >>> (a verbose output which I didnt remember) and, moreover, my "a"
> >>> variable still remains undefined!
> >>> What I'm missing (or forgetting)?
>
> I have not investigated this in detail, but I think you should just make
> all your input cells (that is the ones you want to appear in the
> package) as InitializationCells, then I think the autogenerated packages
> and most probably the exported package files will contain these cells.
> This has been explained in detail in other threads in this newsgroup.
>
>  > So? Maybe the right question is "How do I create a Package?" Because
>  > obviously "Save As->Mathematica Package (.m)" is crippled.
>
> Since I use this all the time I am quite sure that it works and is not
> too crippled...
>
> hth,
>
> albert


  • Prev by Date: Problem involving NDSolve
  • Next by Date: Re: Problems on definit integratiion of gaussian profiles
  • Previous by thread: Re: Saving Packages
  • Next by thread: Re: Saving Packages