From: amannuc1 on 14 Dec 2008 07:39 In exploring ways to clear variables in all unprotected contexts, I executed this command: ClearAll["*`*"] I now realize that was a bad idea. System variables were affected also. I use Quit[] instead now. Did I trash my Mathematica installation? The help function does not seem to work as well. For example, the search function no longer works uniformly. If I type "Lists" or "Expressions" in the top level search window, nothing happens. The help still works at some level, but I don't see search results for "related pages" anymore. The only search results I get are results for direct function names. Most hyperlinks work, but not all. Searching on non-function words does not work. It just brings me back to the Documentation center main screen. The hyperlink called "Installed Add-Ons" gives me an error message that the file I tried to open was not found. I re-installed Mathematica 6.0 the usual way, but that does not seem to help. This is for OS X 10.5.5. I've done this twice. Any advice? Thanks. By the way, I am trying to learn about init.m. I want to increase the search path at startup. I placed the one liner below in a file called init.m in the following directory /Users/mannucci/Library/Mathematica/Autoload but the path remains unmodified. init.m: $Path = Prepend[$Path, "/Users/mannucci/Documents/Mathematica/Lib"]; How does Mathematica find init.m? (The docs are not helping me here, for the reasons mentioned above). -Tony -- Tony Mannucci Supervisor, Ionospheric and Atmospheric Remote Sensing Group Mail-Stop 138-308, Tel > (818) 354-1699 Jet Propulsion Laboratory, Fax > (818) 393-5115 California Institute of Technology, Email > Tony.Mannucci(a)jpl.nasa.gov 4800 Oak Grove Drive, http://genesis.jpl.nasa.gov Pasadena, CA 91109
From: Bill Rowe on 15 Dec 2008 07:46 On 12/14/08 at 7:39 AM, Anthony.J.Mannucci(a)jpl.nasa.gov (amannuc1) wrote: >In exploring ways to clear variables in all unprotected contexts, I >executed this command: ClearAll["*`*"] I assume your goal here was to re-set things to be as they were when you first started your session without actually quitting and restarting Mathematica. If so, the package CleanSlate that can be found at <http://library.wolfram.com/infocenter/MathSource/4718/> is very useful for this purpose. >I now realize that was a bad idea. System variables were affected >also. I use Quit[] instead now. >Did I trash my Mathematica installation? The help function does not >seem to work as well. I would not expect this to "trash" your installation. If simply quitting and re-launching doesn't correct the problem, you might try deleting the following: ~/Library/Mathematica/FrontEnd/6.0 Caches or if using version 7 ~/Library/Mathematica/FrontEnd/7.0 Caches On occasion, after crashing Mathematica, I found this corrected problems. >By the way, I am trying to learn about init.m. I want to increase >the search path at startup. I placed the one liner below in a file >called init.m in the following directory >/Users/mannucci/Library/Mathematica/Autoload >but the path remains unmodified. >init.m: $Path = Prepend[$Path, >"/Users/mannucci/Documents/Mathematica/Lib"]; The file that needs to be modified to add to the search path is found at ~/Library/Mathematica/Kernel/init.m
From: amannuc1 on 16 Dec 2008 02:36 On Dec 15, 4:46 am, Bill Rowe <readn...(a)sbcglobal.net> wrote: > The file that needs to be modified to add to the search path is > found at > > ~/Library/Mathematica/Kernel/init.m Yes, this works well. Thanks. > On 12/14/08 at 7:39 AM, Anthony.J.Mannu...(a)jpl.nasa.gov (amannuc1) > wrote: > > >In exploring ways to clear variables in all unprotected contexts, I > >executed this command: ClearAll["*`*"] > > I assume your goal here was to re-set things to be as they were > when you first started your session without actually quitting > and restarting Mathematica. If so, the package CleanSlate that > can be found at > > <http://library.wolfram.com/infocenter/MathSource/4718/> > > is very useful for this purpose. > >From what I could understand, this package needed context names also. In other words, it would only clear specific contexts, not all contexts that I had created. I could check the documentation again. > >I now realize that was a bad idea. System variables were affected > >also. I use Quit[] instead now. > >Did I trash my Mathematica installation? The help function does not > >seem to work as well. > > I would not expect this to "trash" your installation. If simply > quitting and re-launching doesn't correct the problem, you might > try deleting the following: > > ~/Library/Mathematica/FrontEnd/6.0 Caches > This did not seem to work. I am having the same problem with the Documetation Center (limited search functionality). I note now that when I start Mathematica, the following message appears in the Messages window: During evaluation of In[1]: Needs::nocont: Context PacletManager` was not created when Needs was evaluated. I am not sure where this message is created or when. Thanks! -Tony
From: amannuc1 on 16 Dec 2008 02:36 I found the problem. Thanks to Bill Rowe for his previous advice. For some reason, a bunch of .m files were left in my home directory by a previous session. These files are (all zero length): -rw-r--r-- 1 mannucci 502 0 Dec 13 11:05 Global.m -rw-r--r-- 1 mannucci 502 0 Dec 13 11:05 JLink.m -rw-r--r-- 1 mannucci 502 0 Dec 13 11:05 PacletManager.m -rw-r--r-- 1 mannucci 502 0 Dec 13 11:05 ResourceLocator.m -rw-r--r-- 1 mannucci 502 0 Dec 13 11:05 System.m -rw-r--r-- 1 mannucci 502 0 Dec 13 11:05 WebServices.m These were found by Mathematica and messing up the session. Deleting these and search seems to work fine again! Thanks again. -Tony
|
Pages: 1 Prev: Sample uniformly from a simplex Next: "The requested evaluator is not currently defined" |