In Mathematica 9 and 10 they added autocompletion. Out of the box this works great, but when I set the CellContext to "Notebook" instead of the default "Global" (following this) it no longer autocompletes the functions I define in my notebook.

If I specify that the function is global, then the autocomplete mechanism works as you can see in the example below:

enter image description here

Is there a way of making Mathematica's autocompletion work with functions just defined within the notebook, and not just with global functions?

  • $\begingroup$ I guess explicitly typing Notebook`My is not an option? :-) $\endgroup$ – halirutan Jul 14 '14 at 23:22
  • 3
    $\begingroup$ @halirutan: In principle that does work, but it is in no way ideal. I would have to find the context and type e.g. Notebook$$21$423901`My, and the context would change every time I would close and reopen the notebook. $\endgroup$ – Anders Jul 15 '14 at 14:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.