Re: Can you get a package back to a notebook easily?
- To: mathgroup at smc.vnet.net
- Subject: [mg82985] Re: Can you get a package back to a notebook easily?
- From: David Reiss <dbreiss at gmail.com>
- Date: Tue, 6 Nov 2007 03:40:19 -0500 (EST)
- References: <firstname.lastname@example.org><email@example.com>
On Nov 5, 5:08 am, Szabolcs Horv=E1t <szhor... at gmail.com> wrote: > magma wrote: > > On Nov 3, 9:42 am, Szabolcs <szhor... at gmail.com> wrote: > >> On Nov 2, 9:28 am, "aaronhirshb... at yahoo.com" > > >> <aaronhirshb... at yahoo.com> wrote: > >>> I am asking this because I want to know if I need to save my notebook > >>> and my package in CVS, or only my package? > >>> Aaron Hirshberg > >> If you are using an auto-save package, then no, you can't get back the > >> notebook from the .m file. You can look into the .m file (it is just > >> a plain-text file, and the front end (or notebooks) are not needed to > >> edit it), and see that it contains less information than the notebook. > > > What exactly gets lost when going from Notebook to package? > > I believe only the Initialization cells are transferred to the > > package, everything else is lost. > > Am I correct? > > AFAIK, yes. > > Szabolcs Actually, in Version 6+ the answer is no. The initialization cells are saved, and some other classes of cells are contained as comments with special information that allows them to still be viewed when the .m file opened in Mathematica. Try it out and then open the .m file in a text editor to see this... --David A WorkLife FrameWork E x t e n d i n g MATHEMATICA's Reach... http://scientificarts.com/worklife/