Skip to content

Commit

Permalink
rtd: test don't use %matplotlib inline (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathause committed Nov 3, 2023
1 parent b4f87d8 commit 322ddb7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@
# disable warnings
warnings.filterwarnings("ignore")

# don't check for frozen modules (which cannot be debuged)
os.environ["PYDEVD_DISABLE_FILE_VALIDATION"] = "1"

notebooks = (
"notebooks/method",
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/method.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"# :suppress:\n",
"\n",
"from matplotlib import rcParams\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/tutorial_rst.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{% endblock output_prompt %}

{% block input %}
{%- if cell.source.strip() and not cell.source.startswith("%") -%}
{%- if cell.source.strip() and not (cell.source.startswith("%") or cell.source.startswith("# :suppress:")) -%}
.. code:: python

{{ cell.source | indent}}
Expand Down

0 comments on commit 322ddb7

Please sign in to comment.