Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Utility functions for the Pineapple IPython/Jupyter front-end

Project Description

This project is a Python module that defines some utility functions for the Pineapple IPython/Jupyter front-end.

The goal is to standardize notebooks so that notebook authors can have a consistent and easy way for readers to reproduce their exact results with the least amount of hassle.

Usage

After importing the module, within IPython notebooks you get magic functions %pip, %require, and %runtest.

The %pip command lets you easily use the pip command directly to manage installed packages.

The %require command shows all installed packages with versions if called with no arguments. If called with arguments, it will attempt to install the requested packages. Arguments are version specifiers, separated by spaces.

The %runtest command takes any number of test case or test suite classes descended from unittest.TestCase or unittest.TestSuite and runs them in the cell. It should also be compatible with unittest2.

import pineapple

%pip install numpy

%pip list

%require numpy==1.9.2

%require numpy==1.9.2 ipython==4.0.0

%require

%runtest MyTesterClass
Release History

Release History

This version
History Node

0.4

History Node

0.3

History Node

0.2

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pineapple-0.4.tar.gz (5.5 kB) Copy SHA256 Checksum SHA256 Source Sep 9, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting