Questions about the usages of the various initialization files used by Mathematica. The most common ones are the init.m files that can be found in some Mathematica system folders and in a few specific user folders.

learn more… | top users | synonyms (1)

12
votes
1answer
351 views

How often does Mathematica contact its license server?

I know that Mathematica checks the validity of its license every time the program is launched. Say, however, that I have a valid license (which I do) and that I am running some code which takes a ...
8
votes
2answers
213 views

What is modifying an init.m that changes menu Palettes order?

When I installed the mathStatica application, it seems to have made some kind of change deep in my Mathematica 8.0.4 system files. That change causes the mathStatica palette to appear out of ...
8
votes
2answers
213 views

How do I automatically evaluate a cell when a notebook is opened?

I'm trying to put together a GUI in Mathematica and need to evaluate one cell to kick that off. Is there a way to automatically evaluate that cell when the notebook is opened? Here is an example of ...
7
votes
1answer
218 views

Launch a specific notebook automatically when Mathematica starts

I run Mathematica on an iMac running OS X 10.6.8. I have set the OS's "Launch Items" to include Mathematica so that the application opens when the computer boots. Now I want to go further and ...
7
votes
2answers
355 views

Automatically load packages at startup

I'm a physics student and I try to simplify my day with Mathematica. Every time I use Mathematica I need Div[], Grad[], ...
7
votes
1answer
122 views

StringMatchQ and Alternative throws message in init.m

The report of this issue, which itself relates to code of my answer here, exposed a behavior I cannot explain. If I use StringMatchQ in combination with ...
6
votes
1answer
198 views

Running an initialization cell on Mathematica start up

I am writing a bash script to run a bunch of Mathematica .nb files serially. So I thought I'd convert my Mathematica cells into ...
3
votes
2answers
129 views

How to make DynamicModule work without an extra ENTER

I've been trying to learn more about DynamicModule (I do not use them, as I used Manipulate all the time). After some time ...
3
votes
1answer
76 views

automatically add Global` to $ContextPath for all notebooks when using CellContext->Notebook

I have some definitions in my init.m. E.g. my init.m contains this: ...
3
votes
0answers
64 views

How to search for initialization cells? [duplicate]

Possible Duplicate: How to select all initialization cells? Is there an easy way to search for initialization cells or have all of them removed at once?
2
votes
1answer
155 views

Using header files

I have a piece of code I keep using in new notebooks over and over again and I have to copy and paste it in each new notebook. Problem arises: if I update the code in one file I have to manually do ...
2
votes
1answer
122 views

Not able to load the package in CDF

I am facing a problem in loading the package. My code is working in Mathematica but after deploying it into CDF, it is unable to ...
1
vote
2answers
150 views

Closing front end from within

Based on this I'd like to close the mathematica front end without the nagging dialog boxes that follow. Why am I trying to do this? I have a bash script which is such: ...
1
vote
1answer
87 views

“Hiding” cells until the first cell is evaluated

This question is based on my earlier question about randomizing labs for students in my computer lab courses. There a perfectly good solution was posted; however, because of privilege problems, I ...
1
vote
1answer
119 views

Defining a user defined function in DynamicModule

How can I define a user defined function within DynamicModule? For example, if h[x_] := x^2 I want to find ...
1
vote
0answers
69 views

Function definitions in init.m doesn't work

I can't get any function defined in $UserBaseDirectory/Kernel/init.m to work. For example: ...
0
votes
1answer
128 views

How can I load packages automatically after reopening Mathematica [duplicate]

Possible Duplicate: Automatically load packages at startup I have made two packages "Package1" and "Package2". Package2 calls Package1. it works fine.But everytime I am reopening ...
-1
votes
1answer
184 views

How can I access variables from one .nb file to another .nb file? [closed]

upto last weekend,I wrote my entire Application code in one .nb file.Because of this,it's very difficult for finding the specific code after some time,so I divided ...
-2
votes
1answer
59 views

Initialization in Dynamic Module [closed]

How to Initialize Multiple Packages In Initialization for DynamicModule. I have a Block DynamicModule[{},(),Initialization:>(Needs["package1"];)] How do i ...