Skip to content

Commit

Permalink
Add links to tests by having them in the example notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
mpacer committed Jan 4, 2017
1 parent 8967fa2 commit 1b96191
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 36 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ addons:
before_install:
- git clone --quiet --depth 1 https://github.com/minrk/travis-wheels travis-wheels
install:
- wget http://c90cb902a90d6a506ab3-a24171cbeaa42ce11788f0df3362e902.r46.cf5.rackcdn.com/pandoc-1.15.0.6.tar.gz && tar -xzf pandoc-1.15.0.6.tar.gz
# - wget https://hackage.haskell.org/package/pandoc-1.19.1/pandoc-1.19.1.tar.gz && tar -xzvf pandoc-1.19.1.tar.gz
- wget http://c90cb902a90d6a506ab3-a24171cbeaa42ce11788f0df3362e902.r46.cf5.rackcdn.com/pandoc-1.15.0.6.tar.gz && tar -xzvf pandoc-1.15.0.6.tar.gz
- pip install -f travis-wheels/wheelhouse . codecov coverage
- pip install nbconvert[execute,serve,test]
- python -m ipykernel.kernelspec --user
Expand Down
63 changes: 28 additions & 35 deletions nbconvert/exporters/tests/files/notebook2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand All @@ -38,9 +36,7 @@
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"import numpy as np"
Expand All @@ -56,9 +52,7 @@
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"a = np.random.uniform(size=(100,100))"
Expand All @@ -67,9 +61,7 @@
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"data": {
Expand All @@ -89,9 +81,7 @@
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"evs = np.linalg.eigvals(a)"
Expand All @@ -100,9 +90,7 @@
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"data": {
Expand All @@ -129,9 +117,7 @@
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -164,26 +150,33 @@
},
{
"cell_type": "markdown",
"metadata": {
"collapsed": false
},
"metadata": {},
"source": [
"This cell is just markdown for testing whether an ASCIIDoc quirk is caught.\n",
"This cell is just markdown testing whether an ASCIIDoc quirk is caught and whether [header links are rendered](#numpy-and-matplotlib-examples) even if they [don't resolve correctly now](#NumPy-and-Matplotlib-examples).\n",
"\n",
"one *test* two *tests*. three *tests*"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"outputs": [],
"source": []
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.2"
}
],
"metadata": {},
},
"nbformat": 4,
"nbformat_minor": 0
"nbformat_minor": 1
}

0 comments on commit 1b96191

Please sign in to comment.