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

making Jupyterlab-3 running #887

Closed
15 of 16 tasks
stonebig opened this issue Sep 19, 2020 · 23 comments
Closed
15 of 16 tasks

making Jupyterlab-3 running #887

stonebig opened this issue Sep 19, 2020 · 23 comments

Comments

@stonebig
Copy link
Contributor

stonebig commented Sep 19, 2020

get jupyterlab-3.0b8

check it runs like that for :

  • matplotlib inline
  • cython,
  • numba + bokeh + datashader interactive
  • VSCode+Python-VSCode ok
  • TO REMOVE: voila-0.2.2 is not compatible with jupyter-server-1.0.1 yet

build1 (2020-09-20)

  • adding missing piece jupyterlab-widgets-1.0.0a2
  • NO MORE PROBLEM: ipywidgets
  • needed for widgets below to be adapted: the receipe Update for JupyterLab 3 jupyter-widgets/widget-ts-cookiecutter#83
  • it is no longer pertinent to do : jupyter.exe labextension install @jupyter-widgets/jupyterlab-manager
  • removing all jupyter.exe labextension install: missed bqplot, ipympl, deck.gl, dask-labextension (oups... will need a 5S in the .bat )
  • removing jupyter.exe lab build
  • TO RE-ADD voila-0.2.3 is now compatible with jupyter-server-1.0.1
  • NO MORE PROBLEM:
    • Jupyterlab-3 claiming a build for bqplot widget
    • Jupyterlab-3 claiming a build for pydeck deck.gl/jupyter-widget widget
    • Jupyterlab-3 claiming a build for ipympl widget ==> ipympl removed
    • Jupyterlab-3 claiming a build for ipyleaflet ==> ipyleaflet removed
  • small wispering asks of compatibiliy to;
    • dask-labextension,
    • ipympl,
    • (bqplot shall not need)
    • (ipyleaflet shall not need)
    • (voila shall not need)

build1 (2020-09-27)

  • PROBLEM: make ipyleaflet possible again
  • PROBLEM: make matplotlib ipympl possible again
@stonebig
Copy link
Contributor Author

discovering:

@stonebig
Copy link
Contributor Author

image

@stonebig
Copy link
Contributor Author

stonebig commented Sep 19, 2020

things that may be to work with: https://jupyterlab.readthedocs.io/en/latest/user/extensions.html#extensions

  • JUPYTERLAB_DIR, default is ~/.jupyter/lab (or starting with--app-dir)
  • JUPYTERLAB_SETTINGS_DIR, default is ~/.jupyter/lab/user-settings/
  • JUPYTERLAB_WORKSPACES_DIR, default is ~/.jupyter/lab/workspaces/

@stonebig
Copy link
Contributor Author

image

@stonebig
Copy link
Contributor Author

a shot in the dark theme

image

@stonebig
Copy link
Contributor Author

apparently, Jupyterlab-3 takes a VSCode look for extensions

image

@stonebig
Copy link
Contributor Author

stonebig commented Sep 20, 2020

hum,

ipywidgets works on binder example given in jupyterlab/jupyterlab#9044
so there is a trick for Jupyterlab-3 to make ipywidgets work

image

Lost in thougths

image

@stonebig
Copy link
Contributor Author

stonebig commented Sep 20, 2020

maybe jupyterlab-widgets-1.0.0.a2

image

@stonebig
Copy link
Contributor Author

pip install jupyterlab-widgets-1.0.0.a2 solves the ipywidgets problem.
... things are looking very very promising, but a bit too hot-from-the-oven as of Sept 20th.

@stonebig
Copy link
Contributor Author

stonebig commented Sep 26, 2020

notes from gitter https://gitter.im/jupyterlab/jupyterlab?at=5f6e43bf0b5f3873c9f1e0fb before trying rc1:

pip install --pre jupyterlab==3.0.0rc1 ipywidgets==7.5.1 jupyterlab_widgets==1.0.0a1

that should get widgets working in rc1
no need to install the jupyterlab-manager - the new (actually old :) jupyterlab_widgets package takes care of it without rebuilding jlab

@stonebig
Copy link
Contributor Author

stonebig commented Sep 26, 2020

and:

Starting from JupyterLab 3.0, the extension can be installed with pip:

pip install jupyterlab-python-file
For JupyterLab 1.x and 2.x:

jupyter labextension install jupyterlab-python-file

.... indeed for jupyterlab-python-file (proof of concept that it is the expected new way)

@stonebig
Copy link
Contributor Author

stonebig commented Sep 26, 2020

still an unknown problem on the left extension menu of Jupyterlab

Error communicating with server extension. Reason given: Error: 500 (Internal Server Error)

adding the nodejs server, the restart of Jupyterlab-3.0.0rc1 evolves to
image

and then to

image

@stonebig
Copy link
Contributor Author

which is currently ineffective
image

@stonebig
Copy link
Contributor Author

stonebig commented Sep 27, 2020

greuuuuh: if build doesn't do "jupyter lab build", at opening jupyterlab claims for it

image

removing pydeck package has a move in cleanup direction

@stonebig
Copy link
Contributor Author

stonebig commented Sep 27, 2020

build was still incorrectly doing "jupyter labextension install" for :

  • bqplot
  • ipympl,
  • pydeck

@stonebig
Copy link
Contributor Author

stonebig commented Sep 27, 2020

50% better
image

build was still incorrectly doing "jupyter labextension install" for :

  • dask-labextension

@stonebig
Copy link
Contributor Author

stonebig commented Sep 27, 2020

scratching my head
image

how does it come there ?

....\WPy64-3902b2\scripts>jupyter labextension list
JupyterLab v3.0.0rc1
....\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: ....\WPy64-3902b2\python-3.9.0rc2.amd64\share\jupyter\lab
        jupyter-leaflet v0.13.2 enabled ok
        jupyter-matplotlib v0.7.4 enabled ok


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

....\WPy64-3902b2\scripts>jupyter serverextension list
config dir: C:\Users\helene\.jupyter
    dask_labextension enabled
    - Validating...
      dask_labextension 3.0.0 ok
config dir: ....\WPy64-3902b2\python-3.9.0rc2.amd64\etc\jupyter
    dask_labextension enabled
    - Validating...
      dask_labextension 3.0.0 ok
    ipyparallel.nbextension enabled
    - Validating...
      ipyparallel.nbextension  ok
    jupyter_server_proxy enabled
    - Validating...
      jupyter_server_proxy  ok
    jupyterlab enabled
    - Validating...
      jupyterlab 3.0.0rc1 ok
    voila.server_extension enabled
    - Validating...
      voila.server_extension  ok
    voila enabled
    - Validating...
      voila 0.2.3 ok
config dir: C:\ProgramData\jupyter
    ipyparallel.nbextension enabled
    - Validating...
      ipyparallel.nbextension  ok

....\WPy64-3902b2\scripts>

@stonebig
Copy link
Contributor Author

stonebig commented Sep 27, 2020

jupyterlab/jupyterlab#8804 is jupyterlab-3.1, so there is something not right somewhere

trying by removing:

  • pydeck
  • jupyter_bokeh
  • dask_labextension

so for today, end-result is to remove ipyleaflet and ipympl until less bad incompatibility

@stonebig
Copy link
Contributor Author

stonebig commented Oct 10, 2020

movement on:

  • bqplot
  • ipympl
  • ipyleaflet

but can't complie on windows (fsevent issue)

@stonebig
Copy link
Contributor Author

seems december for a complete thing now.

@stonebig
Copy link
Contributor Author

stonebig commented Dec 13, 2020

as Jupyterlab-2 slipped from end September 2020 to early January 2021, it's now re-targeted for Winpython 2021-01

@stonebig
Copy link
Contributor Author

hum,

maybe jupyterlab-3 is possibly working with old widgets ???

image

image

@stonebig
Copy link
Contributor Author

looks ok now. no way back to Jupyterlab-2

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

1 participant