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

widget not loading after following installation instructions #2

Closed
amolnaik opened this issue Feb 22, 2021 · 4 comments
Closed

widget not loading after following installation instructions #2

amolnaik opened this issue Feb 22, 2021 · 4 comments

Comments

@amolnaik
Copy link

Instructions
$ npm config set @here:registry https://repo.platform.here.com/artifactory/api/npm/here-node/
$ pip install here-map-widget-for-jupyter
$ jupyter nbextension install –py –sys-prefix here_map_widget
$ jupyter nbextension enable here_map_widget –py –sys-prefix

Code
from here_location_services import LS
from here_map_widget import Map, GeoJSON
ls = LS(api_key=my_key)

address = "Invalidenstr 116, 10115 Berlin, Germany"
gc_response = ls.geocode(query=address)

data = gc_response.to_geojson()
geo_layer = GeoJSON(data=data)

m = Map(api_key=my_key, center=[52.53086, 13.38469], zoom=12)
m.add_layer(geo_layer)
m

does not display map widget

@sackh
Copy link
Contributor

sackh commented Feb 23, 2021

Hi @amolnaik
Will you please provide more details:

  1. can you provide the output of the below commands:
    • pip list | grep here-map-widget-for-jupyter
    • pip list | grep here-location-services
    • jupyter nbextension list
  2. are you installing here map widget in a separate virtual env or conda env?
  3. have you tried installation for jupyterlab2?

@amolnaik
Copy link
Author

Hi @sackh.

Thanks for a much-awaited widget :)
The code is working.
I checked with the NPM repo. Its working with: npm config set registry https://repo.platform.here.com/artifactory/api/npm/here-node/

I used it in place of scoped package. Could that be the reason?

@sackh
Copy link
Contributor

sackh commented Feb 23, 2021

I don't think that can be the reason. It is a bit strange. was it only failing for jupyterlab?

@sackh
Copy link
Contributor

sackh commented Feb 27, 2021

closing this issue as npm config set command will not be required with a new release of here map widget for jupyter for Jupyter Notebook and JupyterLab 3.

@sackh sackh closed this as completed Feb 27, 2021
kekishida2 added a commit that referenced this issue Nov 27, 2024
Signed-off-by: Keisuke Kishida <keisuke.kishida@here.com>
kekishida2 added a commit that referenced this issue Nov 28, 2024
Signed-off-by: Keisuke Kishida <keisuke.kishida@here.com>
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