Test your install with jupyter notebook - map widget doesn't display

4635
18
10-09-2018 07:52 AM
NicoleBradstreet1
New Contributor II

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:

0 Kudos
18 Replies
NicoleBradstreet1
New Contributor II

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...):

simoxu
by MVP Regular Contributor
MVP Regular Contributor

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.

GraceAmondi
New Contributor
jupyter nbextension enable --py --sys-prefix arcgis

is what i was missing. Thanks it worked!!

0 Kudos
Marco_E_Cadario
New Contributor II

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.

NicoleBradstreet1
New Contributor II

Marco, thanks!  I had to move on to something else but as I get back to this will give your suggestion a try,

0 Kudos
JamalWest2
Occasional Contributor

Marco where do you run this? I'm having the same issue.

0 Kudos
Marco_E_Cadario
New Contributor II

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.

0 Kudos
JamalWest2
Occasional Contributor

So, I ended up updating the arcgis package and the map widget started working. 

by Anonymous User
Not applicable

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.

0 Kudos