I'm creating a notebook with a Manipulate and I'm trying to call/use a function from another notebook (I use Get for that), in which the function is also inside a Manipulate... but my "main" notebook wouldn't "see" that function.
I have also added LocalizedVariables -> False in the "slave" notebook, with no improvement. Of course I have created a package (*.m) from the "slave" notebook and put the right path for it in Get.
There must be some limitations, which I'm not aware of, of using this kind of calling functions from another notebook, right?
Example of (very simple) code:
Mfunction.nb (& Mfunction.m)
Manipulate[
func[a_, x_] := Sin[a*x];
Plot[func[a, x], {x, 0, 2*Pi}],
{a, .1, 10, 0.1, Appearance -> "Labeled"},
LocalizeVariables -> False]
Mmain.nb
Manipulate[
Plot[1/func[b, y], {y, 1, 100}],
{b, 1, 20, .1, Appearance -> "Labeled"},
Initialization :> (
Get["(* Path *)//Mfunction.m"];)]