IPython Notebook lets you do more than just program

Slashdot it! Delicious Share on Facebook Tweet! Digg!
bacho12345, 123RF.com

bacho12345, 123RF.com

Supernatural

The IPython Notebook environment offers much more than just the interactive execution of Python instructions. It can seamlessly integrate documents, programs, and tools with ease.

Python has always offered an interactive mode. The IPython Notebook environment constitutes an extremely multi-faceted and updated extension [1]. Besides many useful tools like direct shell commands, improved help functions, and runtime measurement for program parts, IPython Notebook connects source text with graphics, wiki-like texts, and everything that HTML5 has to offer in one interactive document. Users working with Python should not ignore the advantages of using Notebook.

Interactive Notebook

Entering python in the command line starts the so-called "Read-eval-print loop" (REPL) [2]. REPL delivers a result once a code line is entered. IPython, however, offers a much improved version of REPL. Although its origins are in the scientific community, many sys admins and developers should not do without IPython Notebook.

Using a shell has some disadvantages. In addition to the limitation of one entry per line, users struggle with the ephemeral nature of the input mechanism. The IPython Notebook does offer a command history that reaches across sessions so that, when restarting, the user can find all previously entered commands. Still, IPython Notebook is much more convenient because it saves all input. The output types can include text, HTML, images, and even GUI elements.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF

Pages: 4

Price $0.99
(incl. VAT)

Buy Ubuntu User

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Composing Office documents without Office

    Pandoc lets you convert Markdown documents to DOCX and work conveniently with the editor of your choice. It is even possible to keep track of changes made by various authors.

  • Using the Leo editor

    Programmers and web designers need to manage a variety of information from one central point. The Leo editor steps up to the challenge in several clever ways.

  • Scripting around your Launchpad project

    Launchpad is a great way to get bleeding-edge and niche software for your Ubuntu, but it also provides a complete API, which allows you to write scripts to automate your access. We look into the Python 3 bindings for the Launchpad API.

  • The new look for Muon package administration

    Muon is the package manager for Kubuntu, an alternative to the APT package manager. We look at how the interface and the conceptual foundation for Muon have changed radically.

  • Python Workshop: Part 2

    After the introduction to Python in the previous issue, this article deals with object orientation. As a practical exercise, you'll be programming a simple graphical user interface.