Physics Professor
CEO and co-founder
Data science is about more than just code and data.
It is about telling stories with code and data.
These data driven stories include other types of content:
We go through different phases as we tell these stories:
We need to tell these stories in different contexts:
How do you tell your data driven stories?
The IPython Notebook is an open source (BSD) tool for telling stories with code and data that are:
This shows the classic terminal based IPython with Matplotlib for interactive plotting:
The Qt Console adds inline plotting, syntax highlighting, multiline editing, rich output display and the two process Kernel model.
from IPython.nbformat import current
with open('StrataIPythonSlides.ipynb') as f:
nb = current.read(f,'json')
nb.worksheets[0].cells[0:5]
[{u'cell_type': u'heading', u'level': 1, u'metadata': {u'slideshow': {u'slide_type': u'slide'}}, u'source': u'The IPython Notebook'}, {u'cell_type': u'heading', u'level': 1, u'metadata': {}, u'source': u'A Comprehensive Tool for Data Science'}, {u'cell_type': u'heading', u'level': 1, u'metadata': {u'slideshow': {u'slide_type': u'fragment'}}, u'source': u'Brian E. Granger'}, {u'cell_type': u'heading', u'level': 1, u'metadata': {}, u'source': u'Strata 2013'}, {u'cell_type': u'markdown', u'metadata': {u'slideshow': {u'slide_type': u'slide'}}, u'source': u'<img src="files/figures/calpoly_logo.png" width=400/>'}]
We try to make writing code pleasant:
%pylab inline
Welcome to pylab, a matplotlib-based Python environment [backend: module://IPython.kernel.zmq.pylab.backend_inline]. For more information, type 'help(pylab)'.
plot(rand(50))
[<matplotlib.lines.Line2D at 0x108e14650>]
Not just Python code though! Though cell magics (%%
) the Notebook supports running code in other languages:
%%bash
echo "Hi there Strata!"
Hi there Strata!
IPython message protocol and Notebook web application is language independent:
This is not just about Python! While we are passionate about Python, we deeply believe that data science is a multi-language enterprise and any tool that ignores that is fatally flawed.
In the live talk, I will show some live Notebook examples.
If you are viewing this slide show later, here are static versions of IPython's demo notebooks:
They are:
We have collected some of the highlights in our notebook gallery
IPython provides an open source foundation for an ecosystem of tools and products
See our development roadmap for details
Visit the IPython website
IPython is completely open source so you can download it and play with it today
The IPython Notebook is a single user web application that you run on your local computer
$ipython notebook
Strata Office Hours
Strata BOF on Python
I am ellisonbg on GitHub, Twitter, Gmail
Team: founded by the folks who created and lead the IPython project
Vision: Simple, collaborative and interactive computing in the cloud based on the IPython Notebook
Focus:
More details coming soon...visit our website and sign up for further information...
from IPython.display import HTML
HTML("""
<style>
div.cell {
width: 940px;
margin-left: auto;
margin-right: auto;
}
.rendered_html {
font-size: 123%;
}
</style>""")