Skip to content

Commit f2ed342

Browse files
author
Jürgen Hasch
committed
Fix some travis warnings and errors
1 parent 96ab1d4 commit f2ed342

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

src/jupyter_contrib_nbextensions/nbextensions/code_prettify/README_isort.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ All options are provided by the [KerneExecOnCells library](kernel_exec_on_cell.j
3535

3636
Under the hood, this nbextension uses the [kerneexeconcells library](kernel_exec_on_cell.js), a shared library for creating Jupyter nbextensions which transform code cell text using calls to the active kernel.
3737

38-
See the [shared README](REAME.md) and [kerneexeconcells library](kernel_exec_on_cell.js) for the internal model used by the nbextension.
38+
See the [shared README](README.md) and [kerneexeconcells library](kernel_exec_on_cell.js) for the internal model used by the nbextension.
3939

4040
[fontawesome]: https://fontawesome.com/icons

src/jupyter_contrib_nbextensions/nbextensions/hide_input/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Exporting with nbconvert
1818
------------------------
1919

2020
See also the general docs for exporting using nbconvert at
21-
[jupyter-contrib-nbextensions.readthedocs.io](https://jupyter-contrib-nbextensions.readthedocs.io/en/latest).
21+
[jupyter-contrib-nbextensions.readthedocs.io](https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/).
2222

2323
To export a notebook with hidden cell inputs using nbconvert, you need to use a
2424
custom template.

src/jupyter_contrib_nbextensions/nbextensions/varInspector/var_list.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
try:
1111
import numpy as np
1212
except ImportError:
13-
pass
13+
pass
14+
1415

1516
def _getsizeof(x):
1617
# return the size of variable x. Amended version of sys.getsizeof
@@ -22,14 +23,16 @@ def _getsizeof(x):
2223
else:
2324
return getsizeof(x)
2425

26+
2527
def _getshapeof(x):
26-
#returns the shape of x if it has one
27-
#returns None otherwise - might want to return an empty string for an empty collum
28+
# returns the shape of x if it has one
29+
# returns None otherwise - might want to return an empty string for an empty collum
2830
try:
2931
return x.shape
30-
except AttributeError: #x does not have a shape
32+
except AttributeError: # x does not have a shape
3133
return None
3234

35+
3336
def var_dic_list():
3437
types_to_exclude = ['module', 'function', 'builtin_function_or_method',
3538
'instance', '_Feature', 'type', 'ufunc']

tests/test_preprocessors.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,4 +218,3 @@ def test_preprocessor_execute_time():
218218
_normalize_iso8601_timezone(etmd['end_time']),
219219
_normalize_iso8601_timezone(etmd['start_time']),
220220
'end_time should not be before start_time')
221-

0 commit comments

Comments
 (0)