MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Custom Autoloaded Functions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116937] Re: Custom Autoloaded Functions
  • From: Peter Breitfeld <phbrf at t-online.de>
  • Date: Sat, 5 Mar 2011 06:05:12 -0500 (EST)
  • References: <ikq8gi$7vc$1@smc.vnet.net>

Just A Stranger wrote:

> If I have a function I wrote that I use often, is there a way to write 
> that function in a file that loads it autotmatically every time I start 
> a new notebook session? What is the best way to go about this?
>

Put your function(s) into a package e.g. myfuncs.m

Then open $UserBaseDirectory/Kernel/init.m and append the line

Get["myfuncs`"]

-- 
_________________________________________________________________
Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de


  • Prev by Date: Re: evaluation-- one or many levels, your thoughts?
  • Next by Date: Using the compiled libraries (dll) outside mathematica
  • Previous by thread: Re: Custom Autoloaded Functions
  • Next by thread: Mathematica inside Excel VBA Macro