This is rather basic.

In an empty notebook I type in a single cell

Unprotect @@ Names["fun`*"];
ClearAll @@ Names["fun`*"];
f::usage = "f[x]"
f[x_] := Module[{}, Sin[x^2]];
Protect @@ Names["fun`*"];

I select the cell and change to become an initialization cell. When I save the notebook, there is the option to save it as an Mathematica package. But I have read somewhere that when you save it for the first time it should appear a pop-up men asking about an AUTO SAVE choice.

But, this menu does not appear. Any ideas?

EDIT There is an answer to a similar query here

SetOptions[Notebooks["<notebook name>.nb"][[1]],AutoGeneratedPackage->Automatic]


This function has not been fully integrated into the long-term Wolfram Language, and is subject to change.

AutoGeneratedPackage is an option for notebooks that specifies whether a package is automatically created when a notebook that contains initialization cells or groups is saved.

(...since 1999...)


closed as off-topic by m_goldberg, MarcoB, Bob Hanlon, dr.blochwave, C. E. Oct 2 '15 at 23:17

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "The question is out of scope for this site. The answer to this question requires either advice from Wolfram support or the services of a professional consultant." – m_goldberg, MarcoB, Bob Hanlon, dr.blochwave, C. E.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • $\begingroup$ IMO, this question is better asked of Wolfram Research than asked here. It may be that the behavior you allude to changed when WRI added (in V6?) a template for creating packages to Mathematica (File > New > Package). I recommend using this template to build a package than converting notebooks. $\endgroup$ – m_goldberg Oct 2 '15 at 19:36

Browse other questions tagged or ask your own question.