Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Getting at an AutoGenerated Package

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52554] Getting at an AutoGenerated Package
  • From: AES/newspost <siegman at stanford.edu>
  • Date: Wed, 1 Dec 2004 05:59:30 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

OK, I created a notebook "myModules" containing a bunch of modules that 
I want to use in my main notebook; set all the cells in this notebook to 
Initialization cells; set the AutoGeneratedPackage option for this 
notebook to Automatic; and indeed, each time I Save this notebook, it 
creates a file "myModule.m" in the same folder as the "myModules" 
notebook it's derived from, and the main notebook in which I want to use 
these modules.

So, now how do I make this package available to my main notebook?  
If I put an Input line

    Needs["myModules`"]

in my main notebook as advised by Maeder's book, I get an error message

    Needs::cxt: Context (string ending in `) expected at position 1 in
    Needs[myModules`].


  • Prev by Date: Re: again Compile
  • Next by Date: Re: Finding the Fourier transform of discrete functions
  • Previous by thread: Re: again Compile
  • Next by thread: Re: Getting at an AutoGenerated Package