Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e8ab1b0

Browse filesBrowse files
committed
TST: add jupyter to 3.6 test
1 parent 7e56deb commit e8ab1b0
Copy full SHA for e8ab1b0

File tree

Expand file treeCollapse file tree

2 files changed

+6
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-1
lines changed

‎.travis.yml

Copy file name to clipboardExpand all lines: .travis.yml
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ env:
5454
- NOSE=
5555
- NUMPY=numpy
5656
- PANDAS=
57+
- JUPYTER=
5758
- PYPARSING=pyparsing
5859
- PYTEST='pytest>=3.4'
5960
- PYTEST_COV=pytest-cov
@@ -94,6 +95,7 @@ matrix:
9495
env:
9596
- DELETE_FONT_CACHE=1
9697
- PANDAS='pandas<0.21.0'
98+
- JUPYTER='jupyter'
9799
- PYTEST_PEP8=pytest-pep8
98100
- PYTEST_ADDOPTS="$PYTEST_ADDOPTS --pep8"
99101
- python: "nightly"
@@ -147,6 +149,7 @@ install:
147149
$NOSE \
148150
$NUMPY \
149151
$PANDAS \
152+
$JUPYTER \
150153
pillow \
151154
$PYPARSING \
152155
$SPHINX \

‎lib/matplotlib/tests/test_backend_nbagg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_backend_nbagg.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
import os
33
import subprocess
44
import tempfile
5-
import nbformat
5+
import pytest
66

7+
nbformat = pytest.importorskip('nbformat')
78

89
# From https://blog.thedataincubator.com/2016/06/testing-jupyter-notebooks/
910

11+
1012
def _notebook_run(nb_file):
1113
"""Execute a notebook via nbconvert and collect output.
1214
:returns (parsed nb object, execution errors)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.