Skip to content

Commit dc8df5f

Browse files
committed
add example to docs showing code inclusion from a file
1 parent 9eead00 commit dc8df5f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/source/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ or even full-blown javascript widgets:
7474
display(a, b)
7575
w.jslink((a, 'value'), (b, 'value'))
7676

77+
It is also possible to include code from a regular file by passing the filename as argument
78+
to ``jupyter-execute``::
79+
80+
.. jupyter-execute:: some_code.py
81+
7782

7883
Directive options
7984
-----------------

0 commit comments

Comments
 (0)