Tutorial by Examples

Like the built-in python interactive shell, IPython is a REPL (Read-Evaluate-Print Loop) shell, with a variety of features that make it more pleasant to use for day-to-day Python development than the built-in REPL shell. Installation To install it: pip install ipython Or, via Anaconda: # To i...
? This gives you an introduction and overview of IPython's features. object? This lists all methods and fields of the object and its documentation (if it exists). object?? Same as above, provides even more detail about the object, in particular will try to find and display the source cod...
IPython has two parts to it: A command line interface that replaces the default python REPL and a way to run Python through the web browser as a graphical user interface. With the latest developments the browser part has been split into the Jupyter project that enables multiple programming language...
%paste This is the primary Magic Method for pasting. It directly pastes text from the system clipboard, intelligently handling common issues with newlines and indentation. %cpaste If you are using IPython via SSH, use %cpaste instead, as it does not need to access the remote system clipbo...
%storemagic stores variables and macros on IPython's database. To automatically restore stored variables at startup add this to ipython_config.py: c.StoreMagic.autorestore = True Example: In [1]: l = ['hello',10,'world'] In [2]: %store l In [3]: exit (IPython session is closed and started...

Page 1 of 1