MathGroup Archive 2008

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

Search the Archive

Re: Saving Packages

  • To: mathgroup at
  • Subject: [mg86927] Re: Saving Packages
  • From: Jens-Peer Kuska <kuska at>
  • Date: Wed, 26 Mar 2008 04:55:07 -0500 (EST)
  • References: <fro3a6$i8l$> <frqpnm$505$> <fsa5ac$a9c$>


the packages exist for the same reason why your
MS-Word has macros/VBasic and you can write letters,
and other short text documents with it.

The notebooks are text documents with embedded code
for teaching/talks .. and the code is typical something
that you do *once*  and the packages include the code
for something that you wish to do on and on.


alexxx.magni at wrote:
> What use? Different ones, depending on the project.
> Basically my "libraries" (as I prefer  to call them) contain
> everything from generic utilities valid for many projects, to project-
> specific function definitions, which are however too cumbersome to
> reside in the main notebook. It is simply the usual breaking down of
> big programs that I'm used to do since the days of plain old C
> programming.
> I thanks everybody who answered me, yet the curious fact is that I'm
> still ignorant about WHY packages exist at all - in a parallel world
> to the .nb world.
> And, more to the point, what would change for the outside user if
> Wolfram would provide a GetNB[] function, performing everything Get
> does -  but for notebooks?
> wondering...
> alessandro
> Jerry ha scritto:
>> alexxx.magni at wrote:
>>> 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?
>> Sir, I am very curious: what would you then do with the .m
>> file?
>> What use does it have?

  • Prev by Date: Re: Mathlink: How do I pass arbitrary data from Mathematica to C?
  • Next by Date: Re: Mathlink: How do I pass arbitrary data from Mathematica to C?
  • Previous by thread: Re: Saving Packages
  • Next by thread: 6.0.2: Input cells' font darker now?