Skip to content

Commit 30b1eb6

Browse files
committed
misc: Magic environment variable causes numpy floats to display differently
1 parent c19fe37 commit 30b1eb6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/clean_notebooks.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
# Clean your notebooks!
44

5+
# Setting this ensures numpy prints scalars rather than np.float() in cell
6+
# output
7+
export PYTEST_VERSION=1
8+
59
# Clear all the output from all cells
610
jupyter-nbconvert --clear-output "$@"
711

0 commit comments

Comments
 (0)