tmap icon indicating copy to clipboard operation
tmap copied to clipboard

tmap in view mode display blank in Jupyter, which leaflet R behave normal

Open liweiwp opened this issue 5 years ago • 8 comments

I think this may be a bug, I using Jupyter notebook with IRkernel, when output view mode map, the nodebook display nothing.

liweiwp avatar Mar 09 '19 10:03 liweiwp

@liweiwp can you add a reproducible example?

Nowosad avatar Mar 09 '19 10:03 Nowosad

image

@Nowosad Above is my try in Jupyter using tmap. I have try several times, still cannot get that work.

liweiwp avatar Mar 09 '19 13:03 liweiwp

Don't know yet. I tried, but even your leaflet code chunk didn't work for me. You could try this:

x <- tmap_leaflet(qtm(World))
print(x)

mtennekes avatar Mar 10 '19 08:03 mtennekes

Please reopen the issue if the problem still occurs.

Nowosad avatar Jun 11 '19 18:06 Nowosad

Don't know yet. I tried, but even your leaflet code chunk didn't work for me. You could try this:

x <- tmap_leaflet(qtm(World))
print(x)

@mtennekes, it does not solve the problem (i.e. displaying as blank as in the other examples). @liweiwp's example still does not work. This issue should not be closed

mherranz avatar Dec 12 '19 20:12 mherranz

+1 I run into this issue as well. I'm trying to get it to work for the gds_env, it'd be super cool to have that working!

darribas avatar Feb 14 '20 15:02 darribas

Could depend on your used browser, if I run my notebook in Firefox the cell executes successfully without warnings etc., however the interactive map does not appear. If I run it in Chrome everything works and the leaflet map appears.

michaelgrund avatar Oct 07 '20 14:10 michaelgrund

Just a quick note that:

library(tmap)
data("World")
x <- tmap_leaflet(qtm(World))
x

works as expected on the gds_env in JupyterLab and correctly renders an interactive map. This works in Chrome and Firefox now, and it's amazing!

darribas avatar Oct 12 '20 08:10 darribas