background preloader

The IPython Notebook — IPython

WebFrameworks A Web framework is a collection of packages or modules which allow developers to write Web applications (see WebApplications) or services without having to handle such low-level details as protocols, sockets or process/thread management. The majority of Web frameworks are exclusively server-side technology, although, with the increased prevalence of AJAX, some Web frameworks are beginning to include AJAX code that helps developers with the particularly tricky task of programming (client-side) the user's browser. At the extreme end of the client-side Web Frameworks is technology that can use the web browser as a full-blown application execution environment (a la gmail for example): see Web Browser Programming for details. Generally, frameworks provide support for a number of activities such as interpreting requests (getting form parameters, handling cookies and sessions), producing responses (presenting data as HTML or in other formats), storing data persistently, and so on.

A gallery of interesting IPython Notebooks · ipython/ipython Wiki This page is a curated collection of IPython notebooks that are notable for some reason. Feel free to add new content here, but please try to only include links to notebooks that include interesting visual or technical content; this should not simply be a dump of a Google search on every ipynb file out there. Important contribution instructions: If you add new content, please ensure that for any notebook you link to, the link is to the rendered version using nbviewer, rather than the raw file. Note that Matt Davis has conveniently written a set of bookmarklets and extensions to make it a one-click affair to load a Notebook URL into your browser of choice, directly opening into nbviewer. Table of Contents Entire books or other large collections of notebooks on a topic Introductory Tutorials Programming and Computer Science Introduction to Programming (using Python), an entire introductory Python course written by Eric Matthes. Statistics, Machine Learning and Data Science Signal Processing Ruby

CheckIO Welcome to Spark Python API Docs! — PySpark 1.5.2 documentation Navigation Welcome to Spark Python API Docs!¶ Contents: Core classes:¶ pyspark.SparkContextMain entry point for Spark functionality.pyspark.RDDA Resilient Distributed Dataset (RDD), the basic abstraction in Spark.pyspark.streaming.StreamingContextMain entry point for Spark Streaming functionality.pyspark.streaming.DStreamA Discretized Stream (DStream), the basic abstraction in Spark Streaming.pyspark.sql.SQLContextMain entry point for DataFrame and SQL functionality.pyspark.sql.DataFrameA distributed collection of data grouped into named columns. Indices and tables¶ Search Page Table Of Contents Next topic pyspark package This Page Show Source Quick search Enter search terms or a module, class or function name. © Copyright .

IPython Notebook: Javascript/Python Bi-directional Communication I've been working with javascript and the IPython notebook recently, and found myself in need of a way to pass data back and forth between the Javascript runtime and the IPython kernel. There's a bit of information about this floating around on various mailing lists and forums, but no real organized tutorial on the subject. Partly this is because the tools are relatively specialized, and partly it's because the functionality I'll outline here is planned to be obsolete in the 2.0 release of IPython. Nevertheless, I thought folks might be interested to hear what I've learned. Executing Python Statements From Javascript¶ The key functionality needed for interaction between javascript and the IPython kernel is the kernel object in the IPython Javascript package. var kernel = IPython.notebook.kernel; kernel.execute(command); where command is a string containing python code. In [1]: After pressing Accessing Python Output In Javascript¶ And then we'll manipulate this value via Javascript: In [4]:

Related: