Skip to content

Commit

Permalink
docs(distrib): generate entries of submodule *distrib*
Browse files Browse the repository at this point in the history
  • Loading branch information
ibressler committed Feb 24, 2023
1 parent 762a548 commit c8055c6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
release = version
commit_id = subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD']).strip().decode('ascii')

autodoc_mock_imports = ["ipykernel", "notebook", "pandas", "ipywidgets"]
autodoc_mock_imports = ["ipykernel", "notebook", "pandas", "ipywidgets", "matplotlib", "scipy"]

pygments_style = 'trac'
templates_path = ['.']
Expand Down
5 changes: 5 additions & 0 deletions docs/reference/jupyter_analysis_tools.distrib.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
jupyter_analysis_tools.distrib
==============================

.. automodule:: jupyter_analysis_tools.distrib
:members:
7 changes: 5 additions & 2 deletions src/jupyter_analysis_tools/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
import matplotlib
import matplotlib.pyplot as plt

# increase the limit for the warning to pop up
matplotlib.rcParams['figure.max_open_warning'] = 50
try:
# increase the limit for the warning to pop up
matplotlib.rcParams['figure.max_open_warning'] = 50
except TypeError: # ignore the error with Sphinx
pass


def initFigure(fig, width=80, aspectRatio=4.0 / 3.0, quiet=False):
Expand Down

0 comments on commit c8055c6

Please sign in to comment.