The magic of IPython Notebook

2,153 views

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,153
On SlideShare
0
From Embeds
0
Number of Embeds
11
Actions
Shares
0
Downloads
19
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

The magic of IPython Notebook

  1. 1. The magic of IPython Notebook in 15 minutes
  2. 2. What is it and why use it? • Web-based REPL (read-eval-print-loop) - simple and interactive programming environment alternative to the default shell • Cross platform and free • Rich toolkit: Terminal / Web / Qt console • Great for learn new languages • Allows to save code snippets • Output in interactive mode: text, tables, graphics
  3. 3. Installing IPython Minimal effort (newbies)! • Anaconda for Mac or Windows ! Complete! • • OSX - easy_install ipython will download and install all dependencies; pip install ipython will also work but ignore some dependencies Ubuntu (and Debian-based distros): • installs IPython and its dependencies sudo apt-get install ipython-notebook • additional tools for scientific computing (optional) sudo apt-get install python-matplotlib python-scipy python-pandas python-sympy python-nose • Windows: http://ipython.org/ipython-doc/stable/install/install.html#windows
  4. 4. First steps • • Launch typing IPython Notebook Do your magic
  5. 5. Characteristics • Easy installation • Menu with several options • Multiple cell types (markdown, raw text, headings) • Magics (% inline and %% multiline) • Code completion • Integrated help • Allows download notebooks and load them again from file
  6. 6. Magic functions
  7. 7. IPython SQL • Introduces a sql magic for IPython • Connect to a db using SQLAlchemy connecting strings • Multiple connections can be manteined • Dict-style access for result sets is supported • Supports Pandas, Graphing and Dumping • https://github.com/catherinedevlin/ipython-sql
  8. 8. Output examples
  9. 9. Thank you

×