diff --git a/docs/conf.py b/docs/conf.py index 83cb847cf9a65..4364d45915475 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -603,6 +603,7 @@ def process_docstring(app, what, name, obj, options, lines): def strip_ipython_magic(app, docname, source): for i in range(len(source)): source[i] = re.sub(r'%%.*\n\s*', "", source[i]) + source[i] = re.sub(r'%env', "export", source[i]) def setup(app):