##// END OF EJS Templates
Backport PR #3097: PyQt 4.10: use self._document = self.document()...
Backport PR #3097: PyQt 4.10: use self._document = self.document() in PygmentsHighlighter, required for PyQt 4.10 compatibility. closes #3084 I have tested this on all my machines with earlier PyQt and PySide, and it doesn't break anything. I don't have any truly old versions of PyQt, though. see [PyQt list](http://www.riverbankcomputing.com/pipermail/pyqt/2013-March/032512.html) for details.

File last commit:

r6183:26a70f4b
r10115:d31ebe23
Show More
daft_extension.py
12 lines | 285 B | text/x-python | PythonLexer
# -*- coding: utf-8 -*-
"""
Useless IPython extension to test installing and loading extensions.
"""
some_vars = {'arq': 185}
def load_ipython_extension(ip):
# set up simplified quantity input
ip.push(some_vars)
def unload_ipython_extension(ip):
ip.drop_by_id(some_vars)