このNotebookは、このイメージにインストールされたライブラリ/ツールが予期した通りにインストールされていることをチェックするものです。Travis CI上でpapermillにより実行されます。
This notebooks tests whether the installed apps work expectedly, and can be executed by papermill on Travis CI.
import sys
assert sys.version_info[0] == 3
numpy and matplotlib to draw charts
%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(0.0, 10.0, 0.1)
plt.plot(x, np.sin(x))
[<matplotlib.lines.Line2D at 0x7f8510084748>]
pandas to display tables
import pandas as pd
pd.DataFrame([(0, 1), (2, 3)], columns=['A', 'B'])
A | B | |
---|---|---|
0 | 0 | 1 |
1 | 2 | 3 |
!which ansible
/opt/conda/bin/ansible
!which wget
/usr/bin/wget
!which curl
/usr/bin/curl
!which papermill
/opt/conda/bin/papermill
!which ping
/bin/ping