MathGroup Archive 2008

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

Search the Archive

Re: importing nb files

  • To: mathgroup at smc.vnet.net
  • Subject: [mg86731] Re: importing nb files
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 19 Mar 2008 05:28:04 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <fro3a6$i8l$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

you are wrong, Get[] will evaluate *.m files and not
notebooks.

Regards
   Jens

alexxx.magni at gmail.com wrote:
> a very basic question - sorry for that...
> 
> probably it's me, almost never having programmed large projects that
> needed breaking up in different notebooks, so I seldom used the Get
> (<<) function, but I seemed to remember this function would allow me
> to Import&evaluate a notebook in another.
> 
> So, defining simply a=2 in a notebook test.nb, when I executed:
> 
> <<"test.nb"
> 
>  I obtained:
> 
> Notebook[{Cell[
>    CellGroupData[{Cell[BoxData[RowBox[{"a", "=", "2"}]], "Input",
>       CellChangeTimes -> {{3.41474*10^9, 3.41474*10^9}}],
>      Cell[BoxData["2"], "Output", CellChangeTimes -> {3.41474*10^9}]},
>      Open]]}, WindowSize -> {640, 750},
>  WindowMargins -> {{150, Automatic}, {Automatic, 52}},
>  FrontEndVersion -> "6.0 for Linux x86 (32-bit) (February 7, 2008)",
>  StyleDefinitions -> "Default.nb"]
> 
> (a verbose output which I didnt remember) and, moreover, my "a"
> variable still remains undefined!
> What I'm missing (or forgetting)?
> 
> thanks!
> 
> Alessandro
> 


  • Prev by Date: Re: Bug: symbol recreates itself suddenly
  • Next by Date: choose elements from list based on elements in different list
  • Previous by thread: importing nb files
  • Next by thread: Re: importing nb files