Skip to content

Commit 7a53815

Browse files
committed
move tip about suppressing warnings inline
1 parent 6480380 commit 7a53815

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

episodes/07-visualization-ggplot-python.md

+12
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,18 @@ To build a `plotnine` graphic we need to:
9292
(p9.ggplot(data=surveys_complete))
9393
```
9494

95+
::::::::::::::::::::::: instructor
96+
97+
Note `plotnine` contains a *lot* of deprecation warnings in some versions of python/matplotlib,
98+
warnings may need to be suppressed with
99+
100+
```python
101+
import warnings
102+
warnings.filterwarnings(action='once')
103+
```
104+
105+
::::::::::::::::::::::::::::::::::
106+
95107
As we have not defined anything else, just an empty figure is available and
96108
presented.
97109

0 commit comments

Comments
 (0)