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 files for pineapple 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pineapple-0.4.tar.gz | 5.5 kB | Details |
Release files / pineapple-0.4.tar.gz
| Download URL | pineapple-0.4.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee23168060386dde39cff6df7f2b15859e8fff5faf98b0cfd31cdc0af80d8ad2
|
|
BLAKE2b-256 checksum How to use checksums |
9d327b5dcf5e20b4dcf71a744fff3602c638a040e091594b74322c1c7f424f2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |