Skip to content
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

How to make this work in Jupyterlab Code Console? #429

Closed
varung opened this issue Feb 13, 2022 · 1 comment
Closed

How to make this work in Jupyterlab Code Console? #429

varung opened this issue Feb 13, 2022 · 1 comment

Comments

@varung
Copy link

varung commented Feb 13, 2022

Describe the issue

Interactive plots do not show up in the code console

from matplotlib import pyplot as plt
%matplotlib widget
plt.figure(figsize=(10,10))
plt.plot(range(10))
plt.show()

In code console, I just see the string "loading widget"

Versions

Please include the result of the following command, which will print out the version of python, ipympl and the Jupyter ecosystem.

python -c "import sys; print('\n',sys.version); import ipympl; print('ipympl version:', ipympl.__version__)" && jupyter --version && jupyter nbextension list && jupyter labextension list

-->

 3.7.5 (default, Oct 25 2019, 15:51:11) 
[GCC 7.3.0]
ipympl version: 0.8.7
Selected Jupyter core packages...
IPython          : 7.31.1
ipykernel        : 5.5.5
ipywidgets       : 7.6.5
jupyter_client   : 7.1.2
jupyter_core     : 4.9.1
jupyter_server   : 1.13.5
jupyterlab       : 3.2.9
nbclient         : 0.5.10
nbconvert        : 6.4.2
nbformat         : 5.1.3
notebook         : 6.4.8
qtconsole        : 4.6.0
traitlets        : 5.1.1
Known nbextensions:
  config dir: /home/varung/miniconda3/envs/tess/etc/jupyter/nbconfig
    notebook section
      jupyter-matplotlib/extension  enabled 
      - Validating: OK
      pydeck/extension  enabled 
      - Validating: problems found:
        - require?  X pydeck/extension
      jupyter-js-widgets/extension  enabled 
      - Validating: OK
  config dir: /etc/jupyter/nbconfig
    notebook section
      jupyter-js-widgets/extension  enabled 
      - Validating: OK
JupyterLab v3.2.9
/home/varung/miniconda3/envs/tess/share/jupyter/labextensions
        jupyter-matplotlib v0.10.5 enabled OK
        @jupyter-widgets/jupyterlab-manager v3.0.1 enabled OK (python, jupyterlab_widgets)
@martinRenou
Copy link
Member

We need jupyter-widgets/ipywidgets#3004 before it can work in ipympl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants