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

LocalTileLayer does not appear on map #84

Closed
agirnow opened this issue Apr 26, 2023 · 13 comments
Closed

LocalTileLayer does not appear on map #84

agirnow opened this issue Apr 26, 2023 · 13 comments

Comments

@agirnow
Copy link

agirnow commented Apr 26, 2023

Hello !

First of all thanks for the work, this library sounds amazing and I can't wait to try it.

However, I still have difficulties to run the introduction notebooks from my machine (Ubuntu 22).
When lauching introduction.ipynb as a jupyter notebook, I have this JavaScript error at block 7 when layer is added on the map :

Failed to create view for 'UrlView' from module 'ipyurl' with model 'UrlModel' from module 'ipyurl'
ReferenceError: process is not defined
    at e.makeSettings (http://localhost:8888/nbextensions/ipyurl/index.js?v=20230426160827:2:69011)
    at e.makeSettings (http://localhost:8888/nbextensions/ipyurl/index.js?v=20230426160827:2:67987)
    at o.get_url (http://localhost:8888/nbextensions/ipyurl/index.js?v=20230426160827:2:404124)
    at o.render (http://localhost:8888/nbextensions/ipyurl/index.js?v=20230426160827:2:403836)
    at http://localhost:8888/nbextensions/jupyter-js-widgets/extension.js?v=20230426160827:2:747630 

My environment was created from scratch using /binder/environment.yml with python 3.10, notably my ipyurl version is 0.1.2 and my xarray-leaflet version is 0.1.16

Here are my jupyter versions :

  • IPython : 8.12.0
  • ipykernel : 6.22.0
  • ipywidgets : 8.0.6
  • jupyter_client : 8.2.0
  • jupyter_core : 5.3.0
  • jupyter_server : 1.24.0
  • jupyterlab : 3.6.3
  • nbclient : 0.7.3
  • nbconvert : 7.3.1
  • nbformat : 5.8.0
  • notebook : 6.5.4
  • qtconsole : not installed
  • traitlets : 5.9.0

Many thanks for any help !

@davidbrochart
Copy link
Collaborator

Hi @agirnow, thanks for the kind works!
What version of ipyurl do you have? Try installing v0.1.3, which requires ipywidgets>=7,<8.

@agirnow
Copy link
Author

agirnow commented Apr 27, 2023

Thanks for your reply !

I have updated ipywidgets to 7.6.0 and ipyurl to 0.1.3, and it removed the JavaScript error I had before.
However, I still do not have anything that displays on the map, executing block 7 just relocates the map to the zone of interest without displaying anything...

Do you have any idea about what can cause this ?

Many thanks,
Alexandre

@agirnow
Copy link
Author

agirnow commented May 5, 2023

Any idea @davidbrochart ?

@davidbrochart
Copy link
Collaborator

Any error reported in the browser console?

@agirnow
Copy link
Author

agirnow commented May 5, 2023

Capture
Yes, here they are

@davidbrochart
Copy link
Collaborator

Could you provide the output of pip list, or the equivalent if it's a conda environment?

@agirnow
Copy link
Author

agirnow commented May 5, 2023

env.txt
Here you will find the complete list of my conda environment.

@davidbrochart
Copy link
Collaborator

I think your environment is not clean, I see:

jupyter-server=1.24.0=pypi_0
jupyter_server=2.5.0=pyhd8ed1ab_0

Could you try again with a fresh env?

@agirnow
Copy link
Author

agirnow commented May 5, 2023

Thanks, it seems that I am making progress !

Now I have a colorbar that displays but no data and map, and a collection of errors like this :

[E 16:07:11.517 NotebookApp] Error unpacking user from cookie: Expecting value: line 1 column 1 (char 0)
[W 16:07:11.517 NotebookApp] Clearing invalid/expired login cookie username-localhost-8888
[I 16:07:11.517 NotebookApp] 302 GET /xarray_leaflet/tmp/xarray_leaflet_iao94655/2/3/1.png (127.0.0.1) 1.140000ms

@davidbrochart
Copy link
Collaborator

Can you provide your environment details again?

@agirnow
Copy link
Author

agirnow commented May 5, 2023

Sure !
env2.txt

@davidbrochart
Copy link
Collaborator

With your environment, it works fine on my side, using JupyterLab.
It looks like you have authentication issues with Notebook?

@agirnow
Copy link
Author

agirnow commented May 9, 2023

@davidbrochart the weekend brought advice, i no longer have issues with the introduction notebooks, everything is working fine ! Many thanks for your help :)

@agirnow agirnow closed this as completed May 9, 2023
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