Show More
@@ -252,7 +252,11 b' class DisplayHook(Configurable):' | |||
|
252 | 252 | try: |
|
253 | 253 | del self.shell.user_ns[key] |
|
254 | 254 | except: pass |
|
255 | self.shell.user_ns['_oh'].clear() | |
|
255 | # In some embedded circumstances, the user_ns doesn't have the | |
|
256 | # '_oh' key set up. | |
|
257 | oh = self.shell.user_ns.get('_oh', None) | |
|
258 | if oh is not None: | |
|
259 | oh.clear() | |
|
256 | 260 | |
|
257 | 261 | # Release our own references to objects: |
|
258 | 262 | self._, self.__, self.___ = '', '', '' |
General Comments 0
You need to be logged in to leave comments.
Login now