Skip to content

Commit

Permalink
DOC: move IPython include file to the top-level docs directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgortmaker committed Apr 25, 2018
1 parent a70791f commit 3089daf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The majority of the package consists of classes, which compartmentalize differen

Many of the pages that the below summaries link to contain example code. For the sake of brevity, the following lines of code, which import the package, import :mod:`numpy`, and limit verbosity, are executed before each example.

.. literalinclude:: static/header.py
.. literalinclude:: include.py
:language: ipython


Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
autosummary_generate = True
ipython_savefig_dir = 'images'
numpydoc_show_class_members = False
ipython_execlines = Path(source_path / 'static' / 'header.py').read_text().splitlines()
ipython_execlines = Path(source_path / 'include.py').read_text().splitlines()

# add a line to be executed by IPython that stores the location of the source directory so that files can be saved
ipython_execlines.append(f'source_path = \'{source_path.as_posix()}\'')
Expand Down
2 changes: 1 addition & 1 deletion docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This section explains how pyblp can be used to solve standard BLP example proble

To start, we'll import the package, as well as :mod:`numpy`, since we'll be using it to manipulate data. The following lines of code, which are executed before each section of examle code in the documentation, import both packages and limit verbosity. Status updates can be informative, so you'll probably want to keep your own verbosity turned on.

.. literalinclude:: static/header.py
.. literalinclude:: include.py
:language: ipython

In this section, we'll also import :mod:`matplotlib.pyplot`, which, although not a pyblp dependency, can be used to plot results.
Expand Down
File renamed without changes.

0 comments on commit 3089daf

Please sign in to comment.