With the release of v.0.11 of IPython, there are a number of familiar
magic commands that have been made silently obsolete. I was surprised to
find the useful store
and r
commands gone, and it turns out there
are several others. Based on a comparison of the Quick Reference Cards,
I note the following:
%bg
: Run a job in the background, in a separate thread.%color_info
: Toggle color_info.%p
: Just a short alias for Python's 'print'.%r
: Repeat previous input.%rehash
: Update the alias table with all entries in \$PATH.%runlog
: Run files as logs.%store
: Lightweight persistence for python variables.%system_verbose
: Set verbose printing of system calls.%upgrade
: Upgrade your IPython installation
It appears IPython's syntax is basically unchanged, but see the official "what's new" documentation. Less urgently, but since I'm on the subject, the following new commands have been added:
%gui
: Enable or disable IPython GUI event loop integration.%install_default_config
: Install IPython's default config file into the .ipython dir.%install_profiles
: Install the default IPython profiles into the .ipython dir.%load_ext
: Load an IPython extension by its module name.%loadpy
: Load a .py python script into the GUI console.%pastebin
: Upload code to the 'Lodge it' paste bin, returning the URL.%pinfo2
: Provide extra detailed information about an object.%pprint
: Toggle pretty printing on/off.%precision
: Set floating point precision for pretty printing.%pylab
: Load numpy and matplotlib to work interactively.%recall
: Repeat a command, or get command to input line for editing.%reload_ext
: Reload an IPython extension by its module name.%rerun
: Re-run previous input%reset_selective
: Resets the namespace by removing names defined by the user.%tb
: Print the last traceback with the currently active exception mode.%unload_ext
: Unload an IPython extension by its module name.%xdel
: Delete a variable, trying to clear it from anywhere that