ipython / ipython/matplotlib-inline
`plt.ioff()` not preventing automatic figure generation in jupyter
- Linguagem predominante
- Jupyter Notebook
- Estrelas
- 31
- Forks
- 39
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
Using `plt.interactive(False)` or `plt.ioff()` in Jupyter (Lab and classic notebook) does not seem to prevent automatic figure generation, unless the magic `%matplotlib inline` in run first, even though the `inline` backend is the default.
### Example
```python
import matplotlib.pyplot as plt
plt.ioff()
fig, ax = plt.subplots()
a = 0
```
The figure still appears automatically under the cell.

### Note that
Explicitly running `%matplotlib inline` blocks figure creation (even though inline is the default activated backend in Jupyter):

Originally posted in https://github.com/matplotlib/matplotlib/issues/23766
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.