I'm seeing the same behavior when running within a python virtual
environment.

Here's a link to the test notebook as a gist:
https://gist.github.com/willingc/98a9c591e7ce9e8fee5cc811a5e307f7

I'm seeing an exception in the Console

Exception inside the 'handler_close' callback: TypeError: Cannot read
property '_remove_fig_handler' of undefined
    at mpl.figure.handle_close (eval at append_javascript
(outputarea.js:763), <anonymous>:706:49)
    at Object.socket_on_message [as onmessage] (eval at append_javascript
(outputarea.js:763), <anonymous>:521:17)
    at eval (eval at append_javascript (outputarea.js:763),
<anonymous>:671:12)
    at Comm._callback (comm.js:194)
    at Comm.handle_msg (comm.js:202)
    at comm.js:132 TypeError: Cannot read property '_remove_fig_handler' of
undefined
    at mpl.figure.handle_close (eval at append_javascript (
http://localhost:8888/static/notebook/js/main.min.js?v=fd76f62c63dfcfdb33c73b0d15290316:45772:13),
<anonymous>:706:49)
    at Object.socket_on_message [as onmessage] (eval at append_javascript (
http://localhost:8888/static/notebook/js/main.min.js?v=fd76f62c63dfcfdb33c73b0d15290316:45772:13),
<anonymous>:521:17)
    at eval (eval at append_javascript (
http://localhost:8888/static/notebook/js/main.min.js?v=fd76f62c63dfcfdb33c73b0d15290316:45772:13),
<anonymous>:671:12)
    at Comm._callback (
http://localhost:8888/static/notebook/js/main.min.js?v=fd76f62c63dfcfdb33c73b0d15290316:47531:24
)
    at Comm.handle_msg (
http://localhost:8888/static/notebook/js/main.min.js?v=fd76f62c63dfcfdb33c73b0d15290316:47539:21
)

On Tue, Aug 18, 2020 at 10:21 AM Stef <[email protected]> wrote:

> The testprogram is just 4 lines long and the problem comes from the
> firstline.
>
> If you comment out the first line, the figure is drawn correctly (but not
> interactive)
>
>
> *program*
>
> %matplotlib notebook
> import pandas as pd
> Data = pd.DataFrame ( [ 1,2,6,8,9 ] )
> Data.plot ()
>
>
> *!pip freeze*
>
> alabaster==0.7.12
> anaconda-client==1.7.2
> anaconda-navigator==1.9.12
> anaconda-project==0.8.3
> argh==0.26.2
> argon2-cffi @
> file:///home/conda/feedstock_root/build_artifacts/argon2-cffi_1590329924553/work
> asn1crypto @
> file:///home/conda/feedstock_root/build_artifacts/asn1crypto_1595949944546/work
> astroid==2.3.3
> astropy==4.0.1.post1
> atomicwrites==1.4.0
> attrs==19.3.0
> autopep8 @ file:///tmp/build/80754af9/autopep8_1592412889138/work
> Babel==2.8.0
> backcall==0.2.0
> backports.functools-lru-cache==1.6.1
> backports.shutil-get-terminal-size==1.0.0
> backports.tempfile==1.0
> backports.weakref==1.0.post1
> beautifulsoup4==4.9.1
> bitarray @ file:///tmp/build/80754af9/bitarray_1596108526825/work
> bkcharts==0.2
> bleach==3.1.5
> bokeh @ file:///tmp/build/80754af9/bokeh_1593187586470/work
> boto==2.49.0
> Bottleneck==1.3.2
> brotlipy==0.7.0
> certifi==2020.6.20
> cffi @
> file:///home/conda/feedstock_root/build_artifacts/cffi_1595805535531/work
> chardet==3.0.4
> click==7.1.2
> cloudpickle @ file:///tmp/build/80754af9/cloudpickle_1594141588948/work
> clyent==1.2.2
> colorama==0.4.3
> conda==4.8.3
> conda-build==3.19.2
> conda-package-handling==1.7.0
> conda-verify==3.4.2
> configobj==5.0.6
> contextlib2==0.6.0.post1
> cryptography @
> file:///home/conda/feedstock_root/build_artifacts/cryptography_1595348769214/work
> cycler==0.10.0
> Cython @ file:///tmp/build/80754af9/cython_1594831564311/work
> cytoolz==0.10.1
> dask @
> file:///home/conda/feedstock_root/build_artifacts/dask-core_1596244567871/work
> decorator==4.4.2
> defusedxml==0.6.0
> dialite==0.5.2
> diff-match-patch @
> file:///tmp/build/80754af9/diff-match-patch_1594828741838/work
> distributed @
> file:///home/conda/feedstock_root/build_artifacts/distributed_1596245653827/work
> docutils==0.16
> entrypoints==0.3
> et-xmlfile==1.0.1
> fastcache==1.1.0
> filelock==3.0.12
> flake8==3.8.3
> Flask==1.1.2
> flatten-json @
> file:///home/conda/feedstock_root/build_artifacts/flatten_json_1594796029827/work
> flexx==0.8.0
> fsspec @
> file:///home/conda/feedstock_root/build_artifacts/fsspec_1596221475257/work
> future==0.18.2
> gevent @ file:///tmp/build/80754af9/gevent_1593009958030/work
> glob2==0.7
> gmpy2==2.1.0b1
> greenlet==0.4.16
> h5py @ file:///tmp/build/80754af9/h5py_1593454119955/work
> HeapDict==1.0.1
> html5lib @ file:///tmp/build/80754af9/html5lib_1593446221756/work
> idna @ file:///tmp/build/80754af9/idna_1593446292537/work
> imagecodecs @
> file:///home/conda/feedstock_root/build_artifacts/imagecodecs_1593295475914/work
> imageio @ file:///tmp/build/80754af9/imageio_1594161405741/work
> imagesize==1.2.0
> importlib-metadata @
> file:///tmp/build/80754af9/importlib-metadata_1593446408836/work
> iniconfig @
> file:///home/conda/feedstock_root/build_artifacts/iniconfig_1596221474428/work
> intervaltree @ file:///tmp/build/80754af9/intervaltree_1594361675072/work
> ipykernel @
> file:///tmp/build/80754af9/ipykernel_1596206598566/work/dist/ipykernel-5.3.4-py3-none-any.whl
> ipysheet==0.4.3
> ipython @
> file:///home/conda/feedstock_root/build_artifacts/ipython_1596256318236/work
> ipython-genutils==0.2.0
> ipywidgets==7.5.1
> isort==4.3.21
> itsdangerous==1.1.0
> jdcal==1.4.1
> jedi @ file:///tmp/build/80754af9/jedi_1592841891421/work
> jeepney==0.4.3
> Jinja2==2.11.2
> joblib @ file:///tmp/build/80754af9/joblib_1594236160679/work
> json5==0.9.5
> jsonschema @ file:///tmp/build/80754af9/jsonschema_1594363551272/work
> jupyter==1.0.0
> jupyter-client @
> file:///tmp/build/80754af9/jupyter_client_1594826976318/work
> jupyter-console==6.1.0
> jupyter-contrib-core==0.3.3
> jupyter-contrib-nbextensions==0.5.1
> jupyter-core==4.6.3
> jupyter-highlight-selected-word==0.2.0
> jupyter-latex-envs==1.4.6
> jupyter-nbextensions-configurator @
> file:///home/conda/feedstock_root/build_artifacts/jupyter_nbextensions_configurator_1594127094771/work
> jupyterlab==2.2.2
> jupyterlab-server @
> file:///tmp/build/80754af9/jupyterlab_server_1594164409481/work
> keyring @ file:///tmp/build/80754af9/keyring_1593109704604/work
> kiwisolver==1.2.0
> lazy-object-proxy @
> file:///home/conda/feedstock_root/build_artifacts/lazy-object-proxy_1595435532940/work
> libarchive-c==2.9
> llvmlite==0.33.0+1.g022ab0f
> locket==0.2.0
> lxml @
> file:///home/conda/feedstock_root/build_artifacts/lxml_1594322698782/work
> MarkupSafe @ file:///tmp/build/80754af9/markupsafe_1594371495811/work
> matplotlib @
> file:///home/conda/feedstock_root/build_artifacts/matplotlib-base_1595353122123/work
> mccabe==0.6.1
> meteocalc==1.1.0
> mistune @ file:///tmp/build/80754af9/mistune_1594373098390/work
> mkl-fft==1.1.0
> mkl-random==1.1.1
> mkl-service==2.3.0
> mock==4.0.2
> more-itertools==8.4.0
> mpmath==1.1.0
> msgpack==1.0.0
> multipledispatch==0.6.0
> navigator-updater==0.2.1
> nbconvert @ file:///tmp/build/80754af9/nbconvert_1594376811065/work
> nbformat==5.0.7
> networkx @ file:///tmp/build/80754af9/networkx_1594377231366/work
> nltk @ file:///tmp/build/80754af9/nltk_1592496090529/work
> nose @ file:///tmp/build/80754af9/nose_1594377616924/work
> notebook @
> file:///home/conda/feedstock_root/build_artifacts/notebook_1596225293416/work
> numba==0.50.1
> numexpr==2.7.1
> numpy @ file:///tmp/build/80754af9/numpy_and_numpy_base_1596233707986/work
> numpydoc @ file:///tmp/build/80754af9/numpydoc_1594166760263/work
> olefile==0.46
> openpyxl @ file:///tmp/build/80754af9/openpyxl_1594167385094/work
> packaging==20.4
> paho-mqtt==1.5.0
> pandas @
> file:///home/conda/feedstock_root/build_artifacts/pandas_1595958445836/work
> pandocfilters==1.4.2
> parso==0.7.0
> partd==1.1.0
> path @
> file:///home/conda/feedstock_root/build_artifacts/path_1595896292270/work
> pathlib2 @ file:///tmp/build/80754af9/pathlib2_1594380969706/work
> pathtools==0.1.2
> patsy==0.5.1
> pep8==1.7.1
> pexpect @ file:///tmp/build/80754af9/pexpect_1594383317248/work
> pickleshare @ file:///tmp/build/80754af9/pickleshare_1594384075987/work
> Pillow @ file:///tmp/build/80754af9/pillow_1594307325547/work
> pkginfo==1.5.0.1
> pluggy==0.13.1
> ply==3.11
> prometheus-client==0.8.0
> prompt-toolkit==3.0.5
> pscript @
> file:///home/conda/feedstock_root/build_artifacts/pscript_1589197636232/work
> psutil @
> file:///home/conda/feedstock_root/build_artifacts/psutil_1594826921622/work
> ptyprocess==0.6.0
> py @ file:///tmp/build/80754af9/py_1593446248552/work
> pyasn1==0.4.8
> pycodestyle==2.6.0
> pycosat==0.6.3
> pycparser @ file:///tmp/build/80754af9/pycparser_1594388511720/work
> pycrypto==2.6.1
> pycurl==7.43.0.5
> pydocstyle @ file:///tmp/build/80754af9/pydocstyle_1592848020240/work
> pyflakes==2.2.0
> Pygments==2.6.1
> pylint==2.4.4
> pyodbc===4.0.0-unsupported
> pyOpenSSL @ file:///tmp/build/80754af9/pyopenssl_1594392929924/work
> pyparsing==2.4.7
> Pypubsub==4.0.3
> PyQt5==5.12.3
> PyQt5-sip==4.19.18
> PyQtChart==5.12
> pyqtgraph @ file:///tmp/build/80754af9/pyqtgraph_1594064840332/work
> PyQtWebEngine==5.12.1
> pyrsistent==0.16.0
> pyserial @ file:///tmp/build/80754af9/pyserial_1594419199743/work
> pysmb==1.2.1
> PySocks @ file:///tmp/build/80754af9/pysocks_1594394576006/work
> pytest==6.0.1
> python-dateutil==2.8.1
> python-jsonrpc-server @
> file:///tmp/build/80754af9/python-jsonrpc-server_1594397536060/work
> python-language-server @
> file:///tmp/build/80754af9/python-language-server_1594161909876/work
> pytz==2020.1
> PyWavelets==1.1.1
> pyxdg==0.26
> PyYAML==5.3.1
> pyzmq==19.0.2
> QDarkStyle==2.8.1
> QtAwesome==0.7.2
> qtconsole @ file:///tmp/build/80754af9/qtconsole_1592848611704/work
> QtPy==1.9.0
> regex @
> file:///home/conda/feedstock_root/build_artifacts/regex_1594799371287/work
> requests @ file:///tmp/build/80754af9/requests_1592841827918/work
> rope==0.17.0
> Rtree==0.9.4
> ruamel-yaml==0.15.87
> scikit-image==0.17.2
> scikit-learn @ file:///tmp/build/80754af9/scikit-learn_1592502882224/work
> scipy @ file:///tmp/build/80754af9/scipy_1592930510235/work
> seaborn==0.10.1
> SecretStorage @
> file:///tmp/build/80754af9/secretstorage_1594419219833/work
> Send2Trash==1.5.0
> simplegeneric==0.8.1
> singledispatch==3.4.0.3
> sip==4.19.23
> six==1.15.0
> snowballstemmer==2.0.0
> sortedcollections==1.2.1
> sortedcontainers==2.2.2
> soupsieve==2.0.1
> Sphinx @ file:///tmp/build/80754af9/sphinx_1594223420021/work
> sphinxcontrib-applehelp==1.0.2
> sphinxcontrib-devhelp==1.0.2
> sphinxcontrib-htmlhelp==1.0.3
> sphinxcontrib-jsmath==1.0.1
> sphinxcontrib-qthelp==1.0.3
> sphinxcontrib-serializinghtml==1.1.4
> sphinxcontrib-websupport @
> file:///tmp/build/80754af9/sphinxcontrib-websupport_1593446360927/work
> spyder @ file:///tmp/build/80754af9/spyder_1594830385602/work
> spyder-kernels @
> file:///home/conda/feedstock_root/build_artifacts/spyder-kernels_1595628911160/work
> SQLAlchemy @ file:///tmp/build/80754af9/sqlalchemy_1593446303748/work
> ssterm==3.0.0
> statsmodels==0.11.1
> sympy @ file:///tmp/build/80754af9/sympy_1594236544199/work
> tables==3.6.1
> tblib==1.6.0
> terminado==0.8.3
> testpath==0.4.4
> threadpoolctl @
> file:///tmp/tmp9twdgx9k/threadpoolctl-2.1.0-py3-none-any.whl
> tifffile @
> file:///home/conda/feedstock_root/build_artifacts/tifffile_1595673894086/work
> toml @ file:///tmp/build/80754af9/toml_1592853716807/work
> toolz==0.10.0
> tornado==6.0.4
> tqdm @
> file:///home/conda/feedstock_root/build_artifacts/tqdm_1594937875116/work
> traitlets==4.3.3
> typed-ast==1.4.1
> typing-extensions @
> file:///tmp/build/80754af9/typing_extensions_1592847887441/work
> ujson==1.35
> unicodecsv==0.14.1
> urllib3 @
> file:///home/conda/feedstock_root/build_artifacts/urllib3_1595434816409/work
> watchdog @ file:///tmp/build/80754af9/watchdog_1593447306189/work
> wcwidth @ file:///tmp/build/80754af9/wcwidth_1593447189090/work
> webencodings==0.5.1
> webruntime @
> file:///home/conda/feedstock_root/build_artifacts/webruntime_1589191956213/work
> Werkzeug==1.0.1
> widgetsnbextension==3.5.1
> wrapt==1.12.1
> wurlitzer @ file:///tmp/build/80754af9/wurlitzer_1594751868473/work
> wxPython==4.0.7.post2
> xlrd==1.2.0
> XlsxWriter @
> file:///home/conda/feedstock_root/build_artifacts/xlsxwriter_1596074457340/work
> xlwt==1.3.0
> xmltodict==0.12.0
> yapf @ file:///tmp/build/80754af9/yapf_1593528177422/work
> zict==2.0.0
> zipp==3.1.0
> zope.event==4.4
> zope.interface==5.1.0
>
>
>
> On 2020-08-18 15:50, Kevin Bates wrote:
>
> (I've updated the subject line.)
>
> A reproducible scenario is always helpful.
> Could you also please include the output of `pip freeze` from the
> environment in which your kernel is running?
>
> Thank you.
> On Monday, August 17, 2020 at 11:48:50 PM UTC-7 [email protected] wrote:
>
>> hi Kevin,
>>
>> thanks for your fast response.
>>
>> I don't know which version of Jupyter I was running before.
>>
>> I just run the (exact same) code from the spyder IDE, in the same Python
>> Environment (3.7.8), and there the plot is shown in the correct way:
>>
>> If interesting, I think I can make a Jupyter program of less then 10
>> lines that shows the problem.
>>
>> greetings,
>>
>> Stef
>>
>>
>> On 2020-08-18 00:23, Kevin Bates wrote:
>>
>> Hi Stef,
>>
>> It's certainly possible there could be a bug introduced in 6.1.  However,
>> this kind of thing strikes me as something related to the kernel and how it
>> renders output.  That said, I've been surprised before as to what the
>> front-end does beyond just issuing the cell's contents to the kernel.
>>
>> I would first ensure the kernel (ipython, ipykernel) and plotting (?)
>> packages are the same as when things appeared to work previously (was that
>> with Notebook 6.0.3?).
>>
>> Also, perhaps someone with some front-end expertise could chime in here -
>> might something on the front-end have triggered this change in behavior?
>>
>> Thanks,
>> Kevin.
>>
>> On Monday, August 17, 2020 at 2:58:46 PM UTC-7 [email protected] wrote:
>>
>>> Thanks for the new release.
>>>
>>> Is it possible that in this new version a bug is introduced in panda's
>>> plot routine ?
>>>
>>> The problem is that only a small upper left part is displayed
>>>
>>> I'm not an expert, but why I think Jupyter Notebook is causing the
>>> problem, is that even in saved noteooks the problem occures.
>>>
>>> greetings, Stef
>>>
>>>
>>> On 2020-07-31 22:58, Kevin Bates wrote:
>>>
>>> The Notebook 6.1.0 release is now available!  You can catch up on the
>>> changes here
>>> <https://jupyter-notebook.readthedocs.io/en/latest/changelog.html#release-6-1-0)>
>>> .
>>>
>>> This release culminates in a substantial community effort with nearly 60
>>> different contributors. Thank you to all those that contributed, raised
>>> issues, and participated in its success!
>>>
>>> To get 6.1.0:
>>>
>>> For pip-managed installations:
>>> new: pip install notebook
>>> existing: pip install --upgrade notebook
>>>
>>> For conda-managed installations:
>>> new: conda install -c conda-forge notebook
>>> existing: conda update -c conda-forge notebook
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Project Jupyter" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jupyter/8ba571ee-7821-4f79-a00f-80aaebcb5e75o%40googlegroups.com
>>> <https://groups.google.com/d/msgid/jupyter/8ba571ee-7821-4f79-a00f-80aaebcb5e75o%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "Project Jupyter" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>>
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jupyter/6b2c3190-964c-43cd-ab82-b1f87b1716dbn%40googlegroups.com
>> <https://groups.google.com/d/msgid/jupyter/6b2c3190-964c-43cd-ab82-b1f87b1716dbn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jupyter/1908628e-e4bb-4d66-9ca2-497eca18aa3dn%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/1908628e-e4bb-4d66-9ca2-497eca18aa3dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jupyter/9ffbea1e-b4a7-6409-589a-5b6dc155cc62%40gmail.com
> <https://groups.google.com/d/msgid/jupyter/9ffbea1e-b4a7-6409-589a-5b6dc155cc62%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAM3VvhyX5VzSQjf7vvubo-bbwK91wb6QUmsmjiF5PkP9ZLi7Tg%40mail.gmail.com.

Reply via email to