It might be useful to add functionality equivalent to IPython's 'run' magic. From http://ipython.org/ipython-doc/dev/interactive/tutorial.html:
Running and Editing<http://ipython.org/ipython-doc/dev/interactive/tutorial.html#running-and-editing> The %run magic command allows you to run any python script and load all of its data directly into the interactive namespace. Since the file is re-read from disk each time, changes you make to it are reflected immediately (unlike imported modules, which have to be specifically reloaded). IPython also includes *dreload*<http://ipython.org/ipython-doc/dev/interactive/reference.html#dreload>, a recursive reload function. %run has special flags for timing the execution of your scripts (-t), or for running them under the control of either Python’s pdb debugger (-d) or profiler (-p). On Tuesday, March 11, 2014 1:34:31 PM UTC-7, Mauro wrote: > > This and related topics seem to crop up a lot, e.g. almost concurrently > this discussion happened: > https://groups.google.com/d/msg/julia-users/xbsdu8Ob4cw/2Vtyo9CFhYoJ > > And Kevin opened this issue to improve the documentation: > https://github.com/JuliaLang/julia/issues/6082 > It is a bit focused on packages but the doc-improvement should also be > including this 'just running' a file issue. I linked to this thread in > the issue now. > > > On Tue, 2014-03-11 at 19:28, ethana...@gmail.com <javascript:> wrote: > > Hi Kevin: > > > > As a convert from Matlab, the first thing I asked for when shopping > around for an alternative language for scientific computing was "what's the > command I use to run a file, top to bottom". > > From my view, this is a important command to have front and center. I > would want to avoid forcing newbies to use "require"... for example just by > looking at the help documentation I knew there would be some spurious > behavior I didn't understand... > > > > julia> ?require > > Loading help data... > > Base.require(file::String...) > > > > Load source files once, in the context of the "Main" module, on > > every active node, searching the system-wide "LOAD_PATH" for > > files. "require" is considered a top-level operation, so it sets > > the current "include" path but does not use it to search for > > files (see help for "include"). This function is typically used > > to load library code, and is implicitly called by "using" to load > > packages. > > > > > > > > Just my two cents. > > Cheers, > > Ethan > >