-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plot isn't rendered when using %matplotlib widget #9697
Comments
Thanks for filing this issue. |
Thanks for your answer !
|
I experience the same bug after updating Output of `python3 -m pip list```` aiodns 3.0.0 aiohttp 3.8.1 aiohttp-cors 0.7.0 aiosignal 1.2.0 anyio 3.5.0 argon2-cffi 21.3.0 argon2-cffi-bindings 21.2.0 astroid 2.9.3 asttokens 2.0.5 async-generator 1.10 async-timeout 4.0.2 attrs 21.4.0 Babel 2.9.1 backcall 0.2.0 black 22.1.0 bleach 4.1.0 Brotli 1.0.9 brotlicffi 1.0.9.2 cchardet 2.1.7 certifi 2021.10.8 cffi 1.15.0 chardet 4.0.0 charset-normalizer 2.0.12 click 8.0.4 colorama 0.4.4 curio 1.5 cycler 0.11.0 decorator 5.1.1 defusedxml 0.7.1 docutils 0.17.1 entrypoints 0.4 eQD 0.3.0 executing 0.8.2 fonttools 4.29.1 frozenlist 1.3.0 h5py 3.6.0 html5lib 1.1 idna 3.3 importlib-metadata 4.11.2 ipykernel 6.9.1 ipympl 0.9.0 ipython 8.1.0 ipython-genutils 0.2.0 ipywidgets 7.6.5 isort 5.10.1 jedi 0.18.1 Jinja2 3.0.3 joblib 1.1.0 json5 0.8.5 jsonschema 4.4.0 jupyter-client 7.1.2 jupyter-core 4.9.2 jupyter-server 1.11.2 jupyterlab 3.3.4 jupyterlab-pygments 0.1.2 jupyterlab-server 2.10.3 jupyterlab-widgets 2.0.0b1 kiwisolver 1.3.2 lazy-object-proxy 1.7.1 llvmlite 0.38.0 lz4 4.0.0 MarkupSafe 2.1.0 matplotlib 3.5.1 matplotlib-inline 0.1.3 mccabe 0.6.1 mistune 0.8.4 mock 4.0.3 more-itertools 8.12.0 mpmath 1.2.1 multidict 6.0.2 mypy-extensions 0.4.3 nbclassic 0.3.5 nbclient 0.5.11 nbconvert 6.4.2 nbformat 5.1.3 nbstripout 0.5.0 nest-asyncio 1.5.4 notebook 6.4.8 numba 0.55.1 numpy 1.21.5 olefile 0.46 opt-einsum 3.3.0 outcome 1.1.0 packaging 21.3 pandocfilters 1.5.0 parso 0.8.3 path.py 12.0.1 pathspec 0.9.0 pbr 5.8.1 pexpect 4.8.0 pickleshare 0.7.5 Pillow 9.0.1 pip 22.0.3 platformdirs 2.5.1 prometheus-client 0.13.1 prompt-toolkit 3.0.28 ptyprocess 0.7.0 pure-eval 0.2.1 py 1.11.0 pycares 4.1.2 pycparser 2.21 Pygments 2.11.2 pylint 2.12.2 pyparsing 3.0.7 pyrsistent 0.18.1 PySocks 1.7.1 python-dateutil 2.8.2 python-socks 2.0.3 pytz 2021.3 PyYAML 6.0 pyzmq 22.3.0 qdplot 0.0.1 requests 2.27.1 requests-unixsocket 0.3.0 scipy 1.8.0 Send2Trash 1.8.1b0 setuptools 60.8.2.post0 six 1.16.0 sniffio 1.2.0 sortedcontainers 2.4.0 stack-data 0.2.0 sympy 1.9 terminado 0.13.1 testpath 0.6.0 toml 0.10.2 tomli 2.0.1 tornado 6.1 tqdm 4.63.0 traitlets 5.1.1 trio 0.20.0 typing_extensions 4.1.1 urllib3 1.26.8 uvloop 0.16.0 wcwidth 0.2.5 webencodings 0.5.1 websocket-client 1.3.1 widgetsnbextension 3.5.2 wrapt 1.13.3 yarl 1.7.2 zipp 3.7.0 ``` |
This issue should be resolved with ipympl 0.9.1. Please try to upgrade (pypi package available now, conda-forge package should be available in ~1 hour). |
This is the expected behavior, it behaves like the inline backend does in Jupyter. If you don't want to see the text repr, you can add a %matplotlib widget
import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
plt.plot(np.sin(np.linspace(0, 20, 100))); |
It also works in vscode (I have just tested it). This solves my issue, thank you very much ! |
Environment data
Expected behaviour
A plot of the sine function should appear.
Actual behaviour
No plot is produced and a VSCode notification with the following text appears.
Steps to reproduce:
Logs
Output for
Jupyter
in theOutput
panelThe text was updated successfully, but these errors were encountered: