From 3e813492dea099dd2fb5b736bc93214a9e29d941 2014-12-09 20:44:53 From: Thomas Kluyver Date: 2014-12-09 20:44:53 Subject: [PATCH] Default ensure_ascii to False when writing notebook JSON Alternative to gh-7064 --- diff --git a/IPython/nbformat/v4/nbjson.py b/IPython/nbformat/v4/nbjson.py index 753d49a..5430512 100644 --- a/IPython/nbformat/v4/nbjson.py +++ b/IPython/nbformat/v4/nbjson.py @@ -49,6 +49,7 @@ class JSONWriter(NotebookWriter): kwargs['indent'] = 1 kwargs['sort_keys'] = True kwargs['separators'] = (',',': ') + kwargs.setdefault('ensure_ascii', False) # don't modify in-memory dict nb = copy.deepcopy(nb) if kwargs.pop('split_lines', True):