QuantEcon / jupinx

Jupyter + Sphinx Utilities and Tools
https://quantecon.github.io/jupinx/
20 stars 4 forks source link

[quickstart] Improve the kernelspec written to conf.py #66

Closed mmcky closed 5 years ago

mmcky commented 5 years ago

Currently the python dict is written as a single line

# -- jupyter build configuration ---------------------------------------------------
jupyter_kernels = {'python3': {'kernelspec': {'display_name': 'Python', 'language': 'python3', 'name': 'python3'}, 'file_extension': '.py'}, 'python2': {'kernelspec': {'display_name': 'Python', 'language': 'python2', 'name': 'python2'}, 'file_extension': '.py'}, 'julia-1.1': {'kernelspec': {'display_name': 'Julia 1.1', 'language': 'julia', 'name': 'julia-1.1'}, 'file_extension': '.jl'}}

it would be nice to write this more neatly as

    # -- jupyter build configuration ---------------------------------------------------
    jupyter_kernels = {
        'python3': {
            'kernelspec': {
                'display_name': 'Python', 
                'language': 'python3', 
                'name': 'python3'
            }, 
            'file_extension': '.py'
        }, 
        'python2': {
            'kernelspec': {
                'display_name': 'Python', 
                'language': 'python2', 
                'name': 'python2'
            }, 
            'file_extension': '.py'
        }, 
        'julia-1.1': {
            'kernelspec': {
                'display_name': 'Julia 1.1', 
                'language': 'julia', 
                'name': 'julia-1.1'
            }, 
            'file_extension': '.jl'
        }
    }

given conf.py is a human readable document