Skip to content

Commit

Permalink
Merge pull request #307 from icbi-lab/suppress-future-warnings
Browse files Browse the repository at this point in the history
Suppress future warnings in tutorials
  • Loading branch information
grst authored Nov 15, 2021
2 parents 52f801a + 4093f77 commit 76233c5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/tutorials/tutorial_3k_tcr.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ For this tutorial, to speed up computations, we use a downsampled version of 3k
# This cell is for development only. Don't copy this to your notebook.
%load_ext autoreload
%autoreload 2

# Temporarily suppress FutureWarnings
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
```

```python
Expand Down
9 changes: 7 additions & 2 deletions docs/tutorials/tutorial_io.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ jupyter:
text_representation:
extension: .md
format_name: markdown
format_version: '1.2'
jupytext_version: 1.5.0.rc1
format_version: '1.3'
jupytext_version: 1.11.4
---

```python
# This cell is for development only. Don't copy this to your notebook.
%load_ext autoreload
%autoreload 2
import anndata
Expand All @@ -18,6 +19,10 @@ anndata.logging.anndata_logger.addFilter(
lambda r: not r.getMessage().startswith("storing")
and r.getMessage().endswith("as categorical.")
)

# Temporarily suppress FutureWarnings
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
```

```python
Expand Down

0 comments on commit 76233c5

Please sign in to comment.