File: autogen_config.py

package info (click to toggle)
jupyter-console 6.6.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 328 kB
  • sloc: python: 1,136; makefile: 168
file content (22 lines) | stat: -rwxr-xr-x 528 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python

import os.path
from jupyter_console.app import ZMQTerminalIPythonApp

header = """\
Configuration options
=====================

These options can be set in ``~/.jupyter/jupyter_console_config.py``, or
at the command line when you start it.
"""

try:
    indir = os.path.dirname(__file__)
except NameError:
    indir = os.getcwd()
destination = os.path.join(indir, 'config_options.rst')

with open(destination, 'w') as f:
    f.write(header)
    f.write(ZMQTerminalIPythonApp().document_config_options())