Skip to content
Snippets Groups Projects
Commit 0b234462 authored by Enric Tejedor Saavedra's avatar Enric Tejedor Saavedra
Browse files

Ensure JSON is sorted when dumping it in the notebook.

In Python2, the dumps function of the json module always returns the
same JSON string for a given Python dictionary across different runs.
In Python3, the returned JSON changes across runs, in particular the
order in which dictionary keys are shown, which complicates the
notebook tests of the interactive neural networks. Only with a sorted
JSON we can compare the newly generated notebook with a reference notebook.
parent 33332384
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment