I just installed the ArcGIS API for Python and I'm having an issue displaying a map widget in jupyter notebook. I think it has something to do with my install, a version issue, or a missing extension? Here's a screen shot. Any suggestions?
-Nicole
Here is a little more detail about my install:
I definitely appreciate the input but unfortunately I am still out of luck. I created a fresh clone and tried again. Looks like all of the extensions are there and enabled, but still no map. Here are some details:
I did get a strange ShimWarning here though (...The 'IPython.kernal' package has been deprecated since IPython 4.0...):
arcgis/mapview seems from the old version. you can delete the related entries in the nbconfig file and restart jupyter.
Or, completely uninstall ArcGIS API for Python and reinstall it.
Hope this helps.
jupyter nbextension enable --py --sys-prefix arcgis
is what i was missing. Thanks it worked!!
I have had the same problem but on Jupyter Lab after a Conda update.
To view maps instead of MapView(layout = ...
you need to run
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension installs arcgis-map-ipywidget@1.5.0
The NodeJS will reinstall the widget.
Using the JupyterLab Environment
I hope this can help you.
Marco, thanks! I had to move on to something else but as I get back to this will give your suggestion a try,
Marco where do you run this? I'm having the same issue.
I've run commands on Jupyter Lab cli Terminal (I have MacOS w/ conda).
On windows you can use Anaconda Prompt.
Make sure to use correct version of Python API after @ on arcgis-map-ipywidget
and
!jupyter nbextension enable --py --sys-prefix arcgis
on top of the notebook.
So, I ended up updating the arcgis package and the map widget started working.
Can you try installing arcgis again, If you still get that error try cleaning conda cache by 'conda clean -t' and then try to install arcgis.