Debian Codegraph @

docs/autogen_config.py

raw
1 #!/usr/bin/env python
2
3 import os.path
4 from jupyter_console.app import ZMQTerminalIPythonApp
5
6 header = """\
7 Configuration options
8 =====================
9
10 These options can be set in ``~/.jupyter/jupyter_console_config.py``, or
11 at the command line when you start it.
12 """
13
14 try:
15 indir = os.path.dirname(__file__)
16 except NameError:
17 indir = os.getcwd()
18 destination = os.path.join(indir, 'config_options.rst')
19
20 with open(destination, 'w') as f:
21 f.write(header)
22 f.write(ZMQTerminalIPythonApp().document_config_options())