Skip to content

Commit 7393a61

Browse files
author
y-p
committed
BLD/DOC: docs conf.py, force pandas to alwayd output utf8 on eall systems (win)
1 parent c4fa9ff commit 7393a61

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/source/conf.py

+10
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,16 @@
285285
'wiki': ('https://github.com/pydata/pandas/wiki/%s',
286286
'wiki ')}
287287

288+
ipython_exec_lines = [
289+
'import numpy as np',
290+
'import pandas as pd',
291+
# This ensures correct rendering on system with console encoding != utf8
292+
# (windows). It forces pandas to encode it's output reprs using utf8
293+
# whereever the docs are built. The docs' target is the browser, not
294+
# the console, so this is fine.
295+
'pd.options.display.encoding="utf8"'
296+
]
297+
288298
# remove the docstring of the flags attribute (inherited from numpy ndarray)
289299
# because these give doc build errors (see GH issue 5331)
290300
def remove_flags_docstring(app, what, name, obj, options, lines):

0 commit comments

Comments
 (0)