@@ -6,10 +6,10 @@ and readable way to print stuff during development. (If you know why this is, I'
66** The wait is over:**
77
88``` py
9- { ! examples/ example.py!}
9+ -- 8 < -- " examples/example.py"
1010```
1111
12- {{ example_html( examples/example.py) }}
12+ --8<-- " examples/example.html"
1313
1414` debug ` is like ` print ` after a good night's sleep and lots of coffee:
1515
@@ -21,10 +21,10 @@ and readable way to print stuff during development. (If you know why this is, I'
2121A more complex example of ` debug ` shows more of what it can do.
2222
2323``` py
24- { ! examples/ complex .py!}
24+ -- 8 < -- " examples/complex.py"
2525```
2626
27- {{ example_html( examples/complex.py) }}
27+ --8<-- " examples/complex.html"
2828
2929### Returning the arguments
3030
@@ -37,10 +37,10 @@ The returned arguments work as follows:
3737* if keyword arguments are passed to ` debug() ` , the ` kwargs ` dictionary is added to the returned tuple
3838
3939``` py
40- { ! examples/ return_args.py!}
40+ -- 8 < -- " examples/return_args.py"
4141```
4242
43- {{ example_html( examples/return_args.py) }}
43+ --8<-- " examples/return_args.html"
4444
4545## Other debug tools
4646
@@ -51,10 +51,10 @@ The debug namespace includes a number of other useful functions:
5151* ` debug.breakpoint() ` introduces a breakpoint using ` pdb `
5252
5353``` py
54- { ! examples/ other.py!}
54+ -- 8 < -- " examples/other.py"
5555```
5656
57- {{ example_html( examples/other.py) }}
57+ --8<-- " examples/other.html"
5858
5959### Prettier print
6060
@@ -66,18 +66,18 @@ To get round this *devtools* comes with prettier print, my take on pretty printi
6666in ` debug() ` , but it can also be used directly:
6767
6868``` py
69- { ! examples/ prettier.py!}
69+ -- 8 < -- " examples/prettier.py"
7070```
7171
72- {{ example_html( examples/prettier.py) }}
72+ --8<-- " examples/prettier.html"
7373
7474For more details on prettier printing, see
7575[ ` prettier.py ` ] ( https://github.com/samuelcolvin/python-devtools/blob/main/devtools/prettier.py ) .
7676
7777## ANSI terminal colours
7878
7979``` py
80- { ! examples/ ansi_colours.py!}
80+ -- 8 < -- " examples/ansi_colours.py"
8181```
8282
8383For more details on ansi colours, see
@@ -95,10 +95,6 @@ Two ways to do this:
9595
9696### Automatic install
9797
98- !!! warning
99- This is experimental, please [ create an issue] ( https://github.com/samuelcolvin/python-devtools/issues )
100- if you encounter any problems.
101-
10298To install ` debug ` into ` __builtins__ ` automatically, run:
10399
104100``` bash
0 commit comments