test_project b test_project.bar # split extensions.append('IPython.sphinxext.ipython_directive') # split Test project ============ .. ipython:: In [2]: import test_project In [3]: b = test_project.bar() In [4]: 2 + 2 Out[4]: 4 In [5]: class A: ...: pass .. automodule:: test_project