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

ipympl-0.5.8 creating troubles with Jupyterlab-3.0.0rc1 #268

Closed
stonebig opened this issue Sep 27, 2020 · 10 comments · Fixed by #272
Closed

ipympl-0.5.8 creating troubles with Jupyterlab-3.0.0rc1 #268

stonebig opened this issue Sep 27, 2020 · 10 comments · Fixed by #272

Comments

@stonebig
Copy link
Contributor

using latest jupyterlab-3.0.0.rc, i do but:

  • to get it OK for the standard Jupyter Notebook:
    . jupyter.exe nbextension enable --py --sys-prefix ipympl
  • but then in in python-3.9.0rc2.amd64\share\jupyter\lab\extensions:
    . jupyter-matplotlib-0.7.4.tgz appears
  • and when launching Jupyter lab:
    . jupyterlab-3.0.0rc1 asks my to rebuild lab (which is uncorrect in jupyterlab-3)
    . even If I didn't do Jupyter labextension install jupyter-matplotlib

I'm lost in searching for a solution

image

@thomasaarholt
Copy link
Contributor

Would you mind clearly explaining the steps as to how you are installing ipympl?

@stonebig
Copy link
Contributor Author

stonebig commented Sep 27, 2020

minimal steps should be :

  • pip install --pre jupyterlab jupyterlab-widgets
  • pip install numpy matplotlib ipympl nbclassic jupyter notebook
  • jupyter.exe nbextension enable --py --sys-prefix ipympl
  • jupyter labextension list

and then last line points the "lab" problem if I pre-check "jupyter labextension list":

C:\WinP\bd39\budot\WPy64-3902b2\scripts>jupyter.exe nbextension enable --py --sys-prefix ipympl
Enabling notebook extension jupyter-matplotlib/extension...
      - Validating: ok

C:\WinP\bd39\budot\WPy64-3902b2\scripts>jupyter labextension list
JupyterLab v3.0.0rc1
C:\WinP\bd39\budot\WPy64-3902b2\python-3.9.0rc2.amd64\share\jupyter\labextensions
        @jupyter-widgets/jupyterlab-manager v3.0.0-alpha.1 enabled ok

Other labextensions (built into JupyterLab)
   app dir: C:\WinP\bd39\budot\WPy64-3902b2\python-3.9.0rc2.amd64\share\jupyter\lab
        jupyter-matplotlib v0.7.4 enabled ok


Build recommended, please run `jupyter lab build`:
    jupyter-matplotlib needs to be included in build

C:\WinP\bd39\budot\WPy64-3902b2\scripts>

@stonebig
Copy link
Contributor Author

with:

Package             Version
------------------- ------------
argon2-cffi         20.2.0.dev0
async-generator     1.10
attrs               20.2.0
Babel               2.8.0
backcall            0.2.0
bleach              3.2.1
certifi             2020.6.20
cffi                1.14.3
chardet             3.0.4
colorama            0.4.3
cycler              0.10.0
decorator           4.4.2
defusedxml          0.6.0
entrypoints         0.3
idna                2.10
ipykernel           5.3.4
ipympl              0.5.8
ipython             7.18.1
ipython-genutils    0.2.0
ipywidgets          7.5.1
jedi                0.17.1
Jinja2              2.11.2
json5               0.9.5
jsonschema          3.2.0
jupyter             1.0.0
jupyter-client      6.1.7
jupyter-console     6.2.0
jupyter-core        4.6.3
jupyter-server      1.0.1
jupyterlab          3.0.0rc1
jupyterlab-pygments 0.1.1
jupyterlab-server   2.0.0rc1
jupyterlab-widgets  1.0.0a2
kiwisolver          1.2.0
MarkupSafe          1.1.1
matplotlib          3.3.2
mistune             0.8.4
msvc-runtime        14.27.29016
nbclassic           0.2.1
nbclient            0.5.0
nbconvert           6.0.6
nbformat            5.0.7
nest-asyncio        1.4.0
notebook            6.1.4
numpy               1.19.2+mkl
packaging           20.4
pandocfilters       1.4.2
parso               0.7.0
pickleshare         0.7.5
Pillow              7.2.0
pip                 20.2.3
prometheus-client   0.7.1
prompt-toolkit      3.0.7
pycparser           2.20
Pygments            2.7.1
pyparsing           2.4.7
pyrsistent          0.17.3
python-dateutil     2.8.1
pytz                2020.1
pywin32             228
pywinpty            0.5.7
pyzmq               19.0.2
qtconsole           4.7.7
QtPy                1.9.0
requests            2.24.0
Send2Trash          1.5.0
setuptools          50.3.0
six                 1.15.0
sqlite-bro          0.9.1
terminado           0.9.1
testpath            0.4.4
tornado             6.0.4
traitlets           5.0.4
urllib3             1.25.10
wcwidth             0.2.5
webencodings        0.5.1
wheel               0.35.1
widgetsnbextension  3.5.1
winpython           3.0.20200927

@martinRenou
Copy link
Member

martinRenou commented Sep 28, 2020

and when launching Jupyter lab:
. jupyterlab-3.0.0rc1 asks my to rebuild lab (which is uncorrect in jupyterlab-3)

AFAIK this is correct in the current state of ipympl. We need to update ipympl for it to support the new JupyterLab extension system.

@jasongrout
Copy link
Contributor

You can update to support the new extension system, but if time is tight, you can also just update package versions like previous jlab upgrades. The 1.x/2.x extension system is still available as well.

@martinRenou
Copy link
Member

I'll try to take time this week for updating to the new extension system, thanks @jasongrout. Is this PR ready? jupyter-widgets/widget-ts-cookiecutter#83 Can I use it as an example for the update?

@snickell
Copy link

snickell commented Dec 4, 2020

Looks like this is still a relevant issue

@jasongrout do you have a sense what would be the best package versions to update to, or ideas where to look to find this?

@martinRenou
Copy link
Member

I suppose the best approach for you would be to wait for JupyterLab 3 to be officially released. I made a PR updating ipympl for JupyterLab 3: #272. I plan on merging it and releasing ipympl when JupyterLab 3 is out.

@snickell
Copy link

@martinRenou fyi, jupyterlab 3.0.0 is officially released on dec 23: https://www.npmjs.com/package/@jupyterlab/application

@snickell
Copy link

This is the same issue as #281 , which will probably attract more attention since it references the error most people will see as they upgrade to juplab 3, might be worth closing this one?

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

Successfully merging a pull request may close this issue.

5 participants