Last active
December 16, 2015 08:29
-
-
Save chirag-v/5406704 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%alias: | |
Define an alias for a system command. | |
%alias_magic: | |
%alias_magic [-l] [-c] name target | |
%autocall: | |
Make functions callable without having to type parentheses. | |
%automagic: | |
Make magic functions callable without having to type the initial %. | |
%bookmark: | |
Manage IPython's bookmark system. | |
%cd: | |
Change the current working directory. | |
%clear: | |
Clear the terminal. | |
%colors: | |
Switch color scheme for prompts, info system and exception handlers. | |
%config: | |
configure IPython | |
%connect_info: | |
Print information for connecting other clients to this kernel | |
%debug: | |
Activate the interactive debugger in post-mortem mode. | |
%dhist: | |
Print your history of visited directories. | |
%dirs: | |
Return the current directory stack. | |
%doctest_mode: | |
Toggle doctest mode on and off. | |
%ed: | |
Alias for `%edit`. | |
%edit: | |
Bring up an editor and execute the resulting code. | |
%env: | |
List environment variables. | |
%gui: | |
Enable or disable IPython GUI event loop integration. | |
%guiref: | |
Show a basic reference about the GUI Console. | |
%hist: | |
Print input history (_i<n> variables), with most recent last. | |
%history: | |
Print input history (_i<n> variables), with most recent last. | |
%install_default_config: | |
%install_default_config has been deprecated. | |
%install_ext: | |
Download and install an extension from a URL, e.g.:: | |
%install_profiles: | |
%install_profiles has been deprecated. | |
%killbgscripts: | |
Kill all BG processes started by %%script and its family. | |
%less: | |
Show a file through the pager. | |
%load: | |
Load code into the current frontend. | |
%load_ext: | |
Load an IPython extension by its module name. | |
%loadpy: | |
Alias of `%load` | |
%logoff: | |
Temporarily stop logging. | |
%logon: | |
Restart logging. | |
%logstart: | |
Start logging anywhere in a session. | |
%logstate: | |
Print the status of the logging system. | |
%logstop: | |
Fully stop logging and close log file. | |
%lsmagic: | |
List currently available magic functions. | |
%macro: | |
Define a macro for future re-execution. It accepts ranges of history, | |
%magic: | |
Print information about the magic function system. | |
%man: | |
Find the man page for the given command and display in pager. | |
%more: | |
Show a file through the pager. | |
%notebook: | |
%notebook [-e] [-f FORMAT] filename | |
%page: | |
Pretty print the object and display it through a pager. | |
%pastebin: | |
Upload code to Github's Gist paste bin, returning the URL. | |
%pdb: | |
Control the automatic calling of the pdb interactive debugger. | |
%pdef: | |
Print the definition header for any callable object. | |
%pdoc: | |
Print the docstring for an object. | |
%pfile: | |
Print (or run through pager) the file where an object is defined. | |
%pinfo: | |
Provide detailed information about an object. | |
%pinfo2: | |
Provide extra detailed information about an object. | |
%popd: | |
Change to directory popped off the top of the stack. | |
%pprint: | |
Toggle pretty printing on/off. | |
%precision: | |
Set floating point precision for pretty printing. | |
%profile: | |
Print your currently active IPython profile. | |
%prun: | |
Run a statement through the python code profiler. | |
%psearch: | |
Search for object in namespaces by wildcard. | |
%psource: | |
Print (or run through pager) the source code for an object. | |
%pushd: | |
Place the current dir on stack and change directory. | |
%pwd: | |
Return the current working directory path. | |
%pycat: | |
Show a syntax-highlighted file through a pager. | |
%pylab: | |
Load numpy and matplotlib to work interactively. | |
%qtconsole: | |
Open a qtconsole connected to this kernel. | |
%quickref: | |
Show a quick reference sheet | |
%recall: | |
Repeat a command, or get command to input line for editing. | |
%rehashx: | |
Update the alias table with all executable files in $PATH. | |
%reload_ext: | |
Reload an IPython extension by its module name. | |
%rep: | |
Repeat a command, or get command to input line for editing. | |
%rerun: | |
Re-run previous input | |
%reset: | |
Resets the namespace by removing all names defined by the user, if | |
%reset_selective: | |
Resets the namespace by removing names defined by the user. | |
%run: | |
Run the named file inside IPython as a program. | |
%save: | |
Save a set of lines or a macro to a given filename. | |
%sc: | |
Shell capture - run shell command and capture output (DEPRECATED use !). | |
%store: | |
Lightweight persistence for python variables. | |
%sx: | |
Shell execute - run shell command and capture output (!! is short-hand). | |
%system: | |
Shell execute - run shell command and capture output (!! is short-hand). | |
%tb: | |
Print the last traceback with the currently active exception mode. | |
%time: | |
Time execution of a Python statement or expression. | |
%timeit: | |
Time execution of a Python statement or expression | |
%unalias: | |
Remove an alias | |
%unload_ext: | |
Unload an IPython extension by its module name. | |
%who: | |
Print all interactive variables, with some minimal formatting. | |
%who_ls: | |
Return a sorted list of all interactive variables. | |
%whos: | |
Like %who, but gives some extra information about each variable. | |
%xdel: | |
Delete a variable, trying to clear it from anywhere that | |
%xmode: | |
Switch modes for the exception handlers. | |
%%!: | |
Shell execute - run shell command and capture output (!! is short-hand). | |
%%bash: | |
%%bash script magic | |
%%capture: | |
%capture [--no-stderr] [--no-stdout] [output] | |
%%file: | |
%file [-a] filename | |
%%perl: | |
%%perl script magic | |
%%prun: | |
Run a statement through the python code profiler. | |
%%python3: | |
%%python3 script magic | |
%%ruby: | |
%%ruby script magic | |
%%script: | |
%shebang [--proc PROC] [--bg] [--err ERR] [--out OUT] | |
%%sh: | |
%%sh script magic | |
%%sx: | |
Shell execute - run shell command and capture output (!! is short-hand). | |
%%system: | |
Shell execute - run shell command and capture output (!! is short-hand). | |
%%timeit: | |
Time execution of a Python statement or expression |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment