Skip to content

Commit 0db329b

Browse files
authored
fix docs: Python code snippet formatting
1 parent 2f1526a commit 0db329b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/index.rst

+4-5
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,10 @@ Relative imports
8585
If you want to import notebooks from other notebooks relatively, you can easily
8686
do that with the following:
8787

88-
```
89-
import ipynb.fs
90-
from .full.notebook1 import foo
91-
from .defs.notebook2 import bar
92-
```
88+
.. code-block:: python
89+
import ipynb.fs
90+
from .full.notebook1 import foo
91+
from .defs.notebook2 import bar
9392
9493
This will do the imports from other notebooks relative to the path of the notebook
9594
in which the importing is happening. The `import ipynb.fs` is boilerplate that is

0 commit comments

Comments
 (0)