Skip to content

Commit c535168

Browse files
committed
DOC: turn off the ipython cache
Also clean up some unused import there DOC: disable ipython cache
1 parent 52ffd9a commit c535168

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

doc/sphinxext/ipython_directive.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,8 @@
6464
import sys
6565
import tempfile
6666

67-
# To keep compatibility with various python versions
68-
try:
69-
from hashlib import md5
70-
except ImportError:
71-
from md5 import md5
72-
7367
# Third-party
7468
import matplotlib
75-
import sphinx
7669
from docutils.parsers.rst import directives
7770
from docutils import nodes
7871
from sphinx.util.compat import Directive
@@ -84,7 +77,6 @@
8477
from IPython.core.profiledir import ProfileDir
8578
from IPython.utils import io
8679

87-
from pdb import set_trace
8880

8981
#-----------------------------------------------------------------------------
9082
# Globals
@@ -205,6 +197,7 @@ def __init__(self):
205197
config.InteractiveShell.autocall = False
206198
config.InteractiveShell.autoindent = False
207199
config.InteractiveShell.colors = 'NoColor'
200+
config.InteractiveShell.cache_size = 0
208201

209202
# create a profile so instance history isn't saved
210203
tmp_profile_dir = tempfile.mkdtemp(prefix='profile_')

0 commit comments

Comments
 (0)