File: sphinx2nb

package info (click to toggle)
nb2plots 0.7.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,160 kB
  • sloc: python: 5,223; makefile: 225
file content (16 lines) | stat: -rwxr-xr-x 294 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!python
""" Convert single ReST document to Notebook JSON

Example:

    sphinx2nb example.rst

Write notebook JSON to stdout as UTF-8.
"""
# vim: ft=python

from nb2plots.commands import do_main


if __name__ == '__main__':
    do_main("Convert Sphinx ReST file to Notebook JSON", 'jupyter')