Skip to content

Commit 76233c5

Browse files
authored
Merge pull request #307 from icbi-lab/suppress-future-warnings
Suppress future warnings in tutorials
2 parents 52f801a + 4093f77 commit 76233c5

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

docs/tutorials/tutorial_3k_tcr.md

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ For this tutorial, to speed up computations, we use a downsampled version of 3k
2323
# This cell is for development only. Don't copy this to your notebook.
2424
%load_ext autoreload
2525
%autoreload 2
26+
27+
# Temporarily suppress FutureWarnings
28+
import warnings
29+
warnings.simplefilter(action='ignore', category=FutureWarning)
2630
```
2731

2832
```python

docs/tutorials/tutorial_io.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ jupyter:
55
text_representation:
66
extension: .md
77
format_name: markdown
8-
format_version: '1.2'
9-
jupytext_version: 1.5.0.rc1
8+
format_version: '1.3'
9+
jupytext_version: 1.11.4
1010
---
1111

1212
```python
13+
# This cell is for development only. Don't copy this to your notebook.
1314
%load_ext autoreload
1415
%autoreload 2
1516
import anndata
@@ -18,6 +19,10 @@ anndata.logging.anndata_logger.addFilter(
1819
lambda r: not r.getMessage().startswith("storing")
1920
and r.getMessage().endswith("as categorical.")
2021
)
22+
23+
# Temporarily suppress FutureWarnings
24+
import warnings
25+
warnings.simplefilter(action='ignore', category=FutureWarning)
2126
```
2227

2328
```python

0 commit comments

Comments
 (0)