Skip to content

Commit

Permalink
Hack to render %env correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
guberti committed Dec 16, 2022
1 parent b203e59 commit 9690a2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9690a2b

Please sign in to comment.