We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 641d5e7 + fca113a commit fa6fd69Copy full SHA for fa6fd69
.travis.yml
@@ -26,6 +26,11 @@ before_install:
26
- conda info -a
27
- travis_retry conda create -n test $CONDA IPython pip nose pyzmq jsonschema
28
- source activate test
29
+ - if [[ $CONDA == python=3.3* ]]; then
30
+ pip install nbformat;
31
+ else
32
+ travis_retry conda install nbformat;
33
+ fi
34
- travis_retry pip install coveralls
35
36
install:
pymatbridge/publish.py
@@ -1,5 +1,10 @@
1
-import IPython.nbformat.v4 as nbformat
2
-from IPython.nbformat import write as nbwrite
+try:
+ import nbformat.v4 as nbformat
3
+ from nbformat import write as nbwrite
4
+except ImportError:
5
+ import IPython.nbformat.v4 as nbformat
6
+ from IPython.nbformat import write as nbwrite
7
+
8
import numpy as np
9
10
0 commit comments