##// END OF EJS Templates
Use in-memory history for sphinx directive
Min RK -
Show More
@@ -135,16 +135,9 b' import ast'
135 import warnings
135 import warnings
136 import shutil
136 import shutil
137
137
138 # To keep compatibility with various python versions
139 try:
140 from hashlib import md5
141 except ImportError:
142 from md5 import md5
143
138
144 # Third-party
139 # Third-party
145 import sphinx
146 from docutils.parsers.rst import directives
140 from docutils.parsers.rst import directives
147 from docutils import nodes
148 from sphinx.util.compat import Directive
141 from sphinx.util.compat import Directive
149
142
150 # Our own
143 # Our own
@@ -285,6 +278,7 b' class EmbeddedSphinxShell(object):'
285
278
286 # Create config object for IPython
279 # Create config object for IPython
287 config = Config()
280 config = Config()
281 config.HistoryManager.hist_file = ':memory:'
288 config.InteractiveShell.autocall = False
282 config.InteractiveShell.autocall = False
289 config.InteractiveShell.autoindent = False
283 config.InteractiveShell.autoindent = False
290 config.InteractiveShell.colors = 'NoColor'
284 config.InteractiveShell.colors = 'NoColor'
General Comments 0
You need to be logged in to leave comments. Login now