Show More
@@ -3,7 +3,6 b' from IPython.utils.text import indent, wrap_paragraphs' | |||
|
3 | 3 | from IPython.terminal.ipapp import TerminalIPythonApp |
|
4 | 4 | from IPython.kernel.zmq.kernelapp import IPKernelApp |
|
5 | 5 | from IPython.html.notebookapp import NotebookApp |
|
6 | from IPython.qt.console.qtconsoleapp import IPythonQtConsoleApp | |
|
7 | 6 | |
|
8 | 7 | def document_config_options(classes): |
|
9 | 8 | lines = [] |
@@ -66,6 +65,13 b" if __name__ == '__main__':" | |||
|
66 | 65 | nbclasses = set(NotebookApp().classes) - set(kernel_classes) |
|
67 | 66 | write_doc('notebook', 'IPython notebook options', nbclasses, |
|
68 | 67 | preamble="Any of the :doc:`kernel` can also be used.") |
|
68 | ||
|
69 | try: | |
|
70 | from IPython.qt.console.qtconsoleapp import IPythonQtConsoleApp | |
|
71 | except ImportError: | |
|
72 | print("WARNING: Could not import qtconsoleapp. Config options for the " | |
|
73 | "Qt Console will not be documented.") | |
|
74 | else: | |
|
69 | 75 | qtclasses = set(IPythonQtConsoleApp().classes) - set(kernel_classes) |
|
70 | 76 | write_doc('qtconsole', 'IPython Qt console options', qtclasses, |
|
71 | 77 | preamble="Any of the :doc:`kernel` can also be used.") |
General Comments 0
You need to be logged in to leave comments.
Login now