##// END OF EJS Templates
Merge pull request #4642 from takluyver/docs-build-noqt...
Thomas Kluyver -
r13767:3476524e merge
parent child Browse files
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,9 +65,16 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.")
69 qtclasses = set(IPythonQtConsoleApp().classes) - set(kernel_classes)
70 write_doc('qtconsole', 'IPython Qt console options', qtclasses,
71 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:
75 qtclasses = set(IPythonQtConsoleApp().classes) - set(kernel_classes)
76 write_doc('qtconsole', 'IPython Qt console options', qtclasses,
77 preamble="Any of the :doc:`kernel` can also be used.")
72 78
73 79 with open('source/config/options/generated', 'w'):
74 80 pass No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now