background preloader

IPython: Productive Interactive Computing — IPython

IPython: Productive Interactive Computing — IPython
IPython provides a rich architecture for interactive computing with: Powerful interactive shells (terminal and Qt-based).A browser-based notebook with support for code, text, mathematical expressions, inline plots and other rich media.Support for interactive data visualization and use of GUI toolkits.Flexible, embeddable interpreters to load into your own projects.Easy to use, high performance tools for parallel computing. While the focus of the project is Python, our architecture is designed in a language-agnostic way to facilitate interactive computing in any language. An interactive kernel speaks to clients such as the terminal or web notebook via a well-specified protocol, and all features of a kernel are available to all clients. We ship the official IPython kernel, but kernels for other languages such as Julia and Haskell are actively developed and used.

http://ipython.org/

Related:  IDEPython 3Apprendre Python (enfin bon, essayer...)softwaresustainable social structures

Quick IPython tutorial — IPython v0.9 documentation IPython can be used as an improved replacement for the Python prompt, and for that you don’t really need to read any more of this manual. But in this section we’ll try to summarize a few tips on how to make the most effective use of it for everyday Python development, highlighting things you might miss in the rest of the manual (which is getting long). We’ll give references to parts in the manual which provide more detail when appropriate. Highlights Tab completion TAB-completion, especially for attributes, is a convenient way to explore the structure of any object you’re dealing with.

Python Properties It is often considered best practice to create getters and setters for a class's public properties. Many languages allow you to implement this in different ways, either by using a function (like person.getName()), or by using a language-specific get or set construct. In Python, it is done using @property. In this article I'll be describing they Python property decorator, which you may have seen being used with the @decorator syntax: class Person(object): def __init__(self, first_name, last_name): self.first_name = first_name self.last_name = last_name @property def full_name(self): return self.first_name + ' ' + self.last_name @full_name.setter def full_name(self, value): first_name, last_name = value.split(' ') self.first_name = first_name self.last_name = last_name @full_name.deleter def full_name(self): del self.first_name del self.last_name

graph_survey - Sage Wiki Introduction The SAGE Graph Theory Project aims to implement Graph objects and algorithms in SAGE. The main people working on this project are Emily Kirkman and Robert Miller. We have attempted to make a complete list of existing graph theory software. We posted functionality lists and some algorithm/construction summaries. University of Washington fusion reactor promises "cheaper than coal" energy In the 21st century, the world lives with two futures ahead of it – one of looming energy shortages, and another of godlike energy abundance. The key to this whether it’s possible to turn fusion reactor technology from a laboratory exercise into a real-world application. Engineers that the University of Washington (UW) are working on a fusion reactor that, when scaled up, could produce energy on a practical scale, yet at a cost rivaling that of a conventional coal-powered plant. Nuclear fusion, as the name implies, is based on fusing hydrogen atoms to form helium; a process that releases tremendous amounts of energy.

A review of 6 Python IDEs Impressions PyDev If you like Eclipse, PyDev is a decent choice (provided, of course, that you have a suitably beefy machine). If you are unfamiliar with Eclipse, good luck with the learning curve; you'll need it. PyDev is the only IDE reviewed where features such as code completion will not work unless you add the .py files to the PyDev project. "Extract method" is cool, but limited.

Installation — Wand 0.4.5 Wand itself can be installed from PyPI using pip: Wand is a Python binding of ImageMagick, so you have to install it as well: Note Wand yet doesn’t support ImageMagick 7 which has several incompatible APIs with previous versions. For more details, see the issue #287. Or you can simply install Wand and its entire dependencies using the package manager of your system (it’s way convenient but the version might be outdated):

String Processing in Python String Literal String literals can be enclosed by either double or single quotes. Characters in a string can be accessed using the standard [ ] syntax, and like Java and C++, Python uses zero-based indexing, so if str is ‘hello’ str[1] is ‘e’. Sage - Tour Sage is built out of nearly 100 open-source packages and features a unified interface. Sage can be used to study elementary and advanced, pure and applied mathematics. This includes a huge range of mathematics, including basic algebra, calculus, elementary to very advanced number theory, cryptography, numerical computation, commutative algebra, group theory, combinatorics, graph theory, exact linear algebra and much more.

Broken windows theory The broken windows theory is a criminological theory of the norm-setting and signalling effect of urban disorder and vandalism on additional crime and anti-social behavior. The theory states that maintaining and monitoring urban environments in a well-ordered condition may stop further vandalism and escalation into more serious crime. The theory was introduced in a 1982 article by social scientists James Q. Wilson and George L.

Related:  python 1Apps